[FFmpeg-devel] [PATCH 2/2] Require compilers to support C17.

Lynne dev at lynne.ee
Tue Feb 6 14:03:58 EET 2024


Feb 6, 2024, 07:51 by dcnieho at gmail.com:

> On Mon, Feb 5, 2024 at 8:59 PM Anton Khirnov <anton at khirnov.net> wrote:
>
>> diff --git a/configure b/configure
>> index f72533b7d2..1bb9e23f19 100755
>> --- a/configure
>> +++ b/configure
>> @@ -5517,21 +5517,20 @@ if test "$?" != 0; then
>>  die "C compiler test failed."
>>  fi
>>
>> -add_cppflags -D_ISOC99_SOURCE
>> +add_cppflags -D_ISOC11_SOURCE
>>
>
> Not an expert, should this be D_ISOC17_SOURCE? A google shows this
> doesn't exist, so i guess i'm wrong. Some comment may be helpful here
>

C17 added no new functions that users have to opt-in to,
so there isn't a D_ISOC17_SOURCE define.
Opting into C11 is all that's needed.


More information about the ffmpeg-devel mailing list