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

James Almer jamrial at gmail.com
Wed Feb 7 23:19:41 EET 2024


On 2/7/2024 6:10 PM, Cosmin Stejerean via ffmpeg-devel wrote:
> 
> 
>> On Feb 7, 2024, at 11:27 AM, Lynne <dev at lynne.ee> wrote:
>>
>>>>
>>>> As a compromise, we could start requiring C11 now, and C17 in 7.1.
>>>> Or does anyone still care about compilers without even c11 support?
>>>>
>>>
>>> How about C11 now and C17 in a year with ffmpeg 8?
>>>
>>
>> Do you have setups and reasons why you can't update them
>> that don't support C17 or are you speculating?
> 
> I don't have any personal reasons why I can't support C17 immediately, but C11 now / C17 in a year seems like an approach more likely to find consensus than C17 immediately (or bumping to C17 in a minor release). It was also roughly the approach proposed in person at FOSDEM.

What are the fixes in c17 that we would benefit from, that compilers 
from before 2017 would be affected by?

And if we go with Cosmin's suggestion, we could always look for 
__STDC_VERSION__ >= 201710L where it matters until c17 becomes the 
minimum version in a year.


More information about the ffmpeg-devel mailing list