mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 18:24:30 -04:00
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:
parent
fdff266a5d
commit
c04bd03a68
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user