Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mytharchive: fix use of reserved keywords for C23
Testing with Fedora rawhide, builds fail with: error: cannot use keyword 'false' as enumeration constant typedef enum { false = 0, true = 1 } bool; ^~~~~ note: 'false' is a keyword with '-std=c23' onwards error: expected ';', identifier or '(' before 'bool' typedef enum { false = 0, true = 1 } bool; ^~~~
- Loading branch information
bc4476e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if this could not have been accomplished by adding a #include <stdbool.h> (which has its own version tests) and removing the local definition of bool entirely. Completely untested.