mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-26 22:31:05 +00:00
[qtypes] Support auto in pre-c23 compilers
I'm not yet ready to do a full-on transition to gcc-13 with -std=gnu2x, but I'm tired of __auto_type's ugliness.
This commit is contained in:
parent
65b2e1750c
commit
d8239bf9e2
1 changed files with 1 additions and 0 deletions
|
@ -53,6 +53,7 @@ typedef uint8_t byte;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if __STDC_VERSION__ < 202000
|
#if __STDC_VERSION__ < 202000
|
||||||
|
#define auto __auto_type
|
||||||
#ifndef _DEF_BOOL_
|
#ifndef _DEF_BOOL_
|
||||||
# define _DEF_BOOL_
|
# define _DEF_BOOL_
|
||||||
// KJB Undefined true and false defined in SciTech's DEBUG.H header
|
// KJB Undefined true and false defined in SciTech's DEBUG.H header
|
||||||
|
|
Loading…
Reference in a new issue