Fix build with -std=gnu23

Gcc 15 defaults to gnu23, which makes bool a native type, so
it cannot be redefined like this.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2025-01-18 13:49:36 +01:00
parent fdff266a5d
commit c04bd03a68

View File

@ -21,7 +21,9 @@
#define STRFY2(x) STRFY(x) #define STRFY2(x) STRFY(x)
#define CORRUPT PyErr_SetString(PyExc_ValueError, "Corrupt bitstream at line: " STRFY2(__LINE__)) #define CORRUPT PyErr_SetString(PyExc_ValueError, "Corrupt bitstream at line: " STRFY2(__LINE__))
#if __STDC_VERSION__ < 202311L
typedef uint8_t bool; typedef uint8_t bool;
#endif
typedef struct Table { typedef struct Table {
uint16_t p; uint16_t p;