common: xash3d_types: avoid defining true and false in C23
This commit is contained in:
parent
a0eec8b85d
commit
de196b1c58
1 changed files with 4 additions and 4 deletions
|
@ -31,11 +31,11 @@ typedef uint32_t poolhandle_t;
|
||||||
#undef true
|
#undef true
|
||||||
#undef false
|
#undef false
|
||||||
|
|
||||||
#ifndef __cplusplus
|
// true and false are keywords in C++ and C23
|
||||||
typedef enum { false, true } qboolean;
|
#if !__cplusplus && __STDC_VERSION__ < 202311L
|
||||||
#else
|
enum { false, true };
|
||||||
typedef int qboolean;
|
|
||||||
#endif
|
#endif
|
||||||
|
typedef int qboolean;
|
||||||
|
|
||||||
#define MAX_STRING 256 // generic string
|
#define MAX_STRING 256 // generic string
|
||||||
#define MAX_VA_STRING 1024 // compatibility macro
|
#define MAX_VA_STRING 1024 // compatibility macro
|
||||||
|
|
Loading…
Add table
Reference in a new issue