[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:
Bill Currie 2023-06-18 17:16:58 +09:00
parent 65b2e1750c
commit d8239bf9e2

View file

@ -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