https://git.reactos.org/?p=reactos.git;a=commitdiff;h=ddc853a4be9c8ae821149a7ed4f5bbc7c44abbfc

commit ddc853a4be9c8ae821149a7ed4f5bbc7c44abbfc
Author:     Pierre Schweitzer <pie...@reactos.org>
AuthorDate: Fri Sep 6 08:56:58 2019 +0200
Commit:     Pierre Schweitzer <pie...@reactos.org>
CommitDate: Fri Sep 6 08:56:58 2019 +0200

    [SDK] Workaround MSVC2010 not having _Bool type
    
    CORE-16366
---
 sdk/include/crt/stdbool.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/sdk/include/crt/stdbool.h b/sdk/include/crt/stdbool.h
index 5cb66b55d02..497bb493cb6 100644
--- a/sdk/include/crt/stdbool.h
+++ b/sdk/include/crt/stdbool.h
@@ -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__)

Reply via email to