-
Notifications
You must be signed in to change notification settings - Fork 628
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ISO have recently standardized a way of defining attributes based on the ISO-C++ syntax standardised in 2011. This allows removal of the existing compiler-specific hacks as well as compatibility with C++. The latter is important for attributes used in the header files which declare the libpng API (png.h and descendants.) This also extends the attribute handling to any compliant C compiler, not just the three with compiler specific support in the prior code. The fix also enables removal of the highly idiosyncratic use of specific comments to indicate "fall through" in case statements; the concept is now supported by the [[fallthrough]] attribute. The changes include checks to ensure that the attribute syntax is supported by the compiler and that the specific attributes are also supported. The changes are detailed in these commits: commit 51b6189 commit 8942be9 Signed-off-by: John Bowler <jbowler@acm.org>
- Loading branch information
Showing
11 changed files
with
242 additions
and
165 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
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
Oops, something went wrong.