Bool's must be 32-bits wide

This commit is contained in:
Joshua Scoggins 2016-04-20 18:50:36 -07:00
parent a4ca331de9
commit 1b873d3ab4

View File

@ -307,26 +307,13 @@ typedef int BOOL; // this is for TRUE/FALSE
typedef int RESULT; // for error codes typedef int RESULT; // for error codes
typedef int INDEX; // for indexed values and quantities typedef int INDEX; // for indexed values and quantities
#else #else
#if __cplusplus <= 199711L
typedef int32_t BOOL; // this is for TRUE/FALSE typedef int32_t BOOL; // this is for TRUE/FALSE
#else // c++11 and greater has nice bool support
typedef bool BOOL;
#endif
typedef int32_t RESULT; // for error codes typedef int32_t RESULT; // for error codes
typedef int32_t INDEX; // for indexed values and quantities typedef int32_t INDEX; // for indexed values and quantities
#endif #endif
#ifdef PLATFORM_WIN32
#define FALSE 0 #define FALSE 0
#define TRUE 1 #define TRUE 1
#else
#if __cplusplus <= 199711L
#define FALSE 0
#define TRUE 1
#else // use boolean types when we have access to C++11
#define FALSE false
#define TRUE true
#endif
#endif
#define NONE 0 #define NONE 0
#define NOTHING ((void) 0) #define NOTHING ((void) 0)