summaryrefslogtreecommitdiffstats
path: root/compiler-rt/BlocksRuntime/Block_private.h
diff options
context:
space:
mode:
Diffstat (limited to 'compiler-rt/BlocksRuntime/Block_private.h')
-rw-r--r--compiler-rt/BlocksRuntime/Block_private.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/compiler-rt/BlocksRuntime/Block_private.h b/compiler-rt/BlocksRuntime/Block_private.h
index 7b069d8997a..8ae821815eb 100644
--- a/compiler-rt/BlocksRuntime/Block_private.h
+++ b/compiler-rt/BlocksRuntime/Block_private.h
@@ -33,7 +33,14 @@
# endif
#endif
+#ifndef _MSC_VER
#include <stdbool.h>
+#else
+/* MSVC doesn't have <stdbool.h>. Compensate. */
+typedef char bool;
+#define true (bool)1
+#define false (bool)0
+#endif
#if defined(__cplusplus)
extern "C" {
OpenPOWER on IntegriCloud