forked from AOMediaCodec/libavif
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not define AVIF_ENABLE_NODISCARD for avif.h
Make the AVIF_ENABLE_NODISCARD cmake option require C23 so that avif.h can define the AVIF_NODISCARD macro as [[nodiscard]] without checking the AVIF_ENABLE_NODISCARD macro. This requires changing avif.h to test __STDC_VERSION__ >= 202000L, which is the value of __STDC_VERSION__ in recent versions of GCC and Clang when -std=c2x or -std=gnu2x is specified. In general avif.h should only test compiler predefined macros. The only exception is AVIF_DLL (ignoring the experimental feature macros.) Fix AOMediaCodec#2352.
- Loading branch information
1 parent
39cf485
commit 93b4ad4
Showing
2 changed files
with
22 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters