mirror of
https://github.com/yasm/yasm
synced 2026-08-26 22:26:05 -04:00
bitvect: fix build with gcc-15 (#287)
* fixes:
libyasm/bitvect.h:86:32: error: cannot use keyword 'false' as enumeration constant
86 | typedef enum boolean { false = FALSE, true = TRUE } boolean;
| ^~~~~
../git/libyasm/bitvect.h:86:32: note: 'false' is a keyword with '-std=c23' onwards
as suggested in:
https://github.com/yasm/yasm/issues/283#issuecomment-2661108816
Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
This commit is contained in:
parent
7a7762c337
commit
715d3d5c5c
1 changed files with 5 additions and 1 deletions
|
|
@ -83,7 +83,11 @@ typedef Z_longword *Z_longwordptr;
|
|||
#ifdef MACOS_TRADITIONAL
|
||||
#define boolean Boolean
|
||||
#else
|
||||
typedef enum boolean { false = FALSE, true = TRUE } boolean;
|
||||
#if __STDC_VERSION__ < 202311L
|
||||
typedef enum boolean { false = FALSE, true = TRUE } boolean;
|
||||
#else
|
||||
typedef bool boolean;
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue