Lucciefr
Lua code caving, injection and exploration framework
bool.h
Go to the documentation of this file.
1 
9 #ifndef BOOL_H
10 #define BOOL_H
11 
12 #if (defined (WIN32) || defined (WIN64) || defined (_WIN32) || defined (_WIN64)) \
13  && !defined(__MINGW32__) && !defined(__MINGW64__)
14 // assume this is MSVC
15 
16 // stdbool.h
17 #if (_MSC_VER < 1800)
18 #ifndef __cplusplus
19 typedef unsigned char bool;
20 #define false 0
21 #define true 1
22 #endif
23 
24 #else
25 // VisualStudio 2013+ -> C99 is supported
26 #include <stdbool.h>
27 #endif
28 
29 
30 #else // not MSVC -> C99 is supported
31 #include <stdbool.h>
32 #endif
33 
34 #endif // BOOL_H