[SDK] Workaround MSVC2010 not having _Bool type

CORE-16366
This commit is contained in:
Pierre Schweitzer 2019-09-06 08:56:58 +02:00
parent 6e3c0d360b
commit ddc853a4be
No known key found for this signature in database
GPG key ID: 7545556C3D585B0B

View file

@ -28,7 +28,11 @@
/* Don't define bool, true, and false in C++, except as a GNU extension. */
#ifndef __cplusplus
#if _MSC_VER <= 1600
#define bool unsigned char
#else
#define bool _Bool
#endif
#define true 1
#define false 0
#elif defined(__GNUC__) && !defined(__STRICT_ANSI__)