projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e3c0d3
)
[SDK] Workaround MSVC2010 not having _Bool type
author
Pierre Schweitzer
<pierre@reactos.org>
Fri, 6 Sep 2019 06:56:58 +0000
(08:56 +0200)
committer
Pierre Schweitzer
<pierre@reactos.org>
Fri, 6 Sep 2019 06:56:58 +0000
(08:56 +0200)
CORE-16366
sdk/include/crt/stdbool.h
patch
|
blob
|
history
diff --git
a/sdk/include/crt/stdbool.h
b/sdk/include/crt/stdbool.h
index
5cb66b5
..
497bb49
100644
(file)
--- 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__)