Wrap the #include of <stdbool.h> in an #ifndef __cplusplus.
authorPeter Collingbourne <peter@pcc.me.uk>
Wed, 25 Sep 2013 07:11:58 +0000 (07:11 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Wed, 25 Sep 2013 07:11:58 +0000 (07:11 +0000)
This should fix the MSVC build.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191357 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm-c/lto.h

index 40110fddfc1396c12818b8781bd6ac9090e0109b..d960617fdc7896ab378f940983f7a2f369bbc322 100644 (file)
@@ -16,7 +16,9 @@
 #ifndef LLVM_C_LTO_H
 #define LLVM_C_LTO_H
 
 #ifndef LLVM_C_LTO_H
 #define LLVM_C_LTO_H
 
+#ifndef __cplusplus
 #include <stdbool.h>
 #include <stdbool.h>
+#endif
 #include <stddef.h>
 #include <unistd.h>
 
 #include <stddef.h>
 #include <unistd.h>