aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm-c
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2013-09-25 07:11:58 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2013-09-25 07:11:58 +0000
commitaca74f0e0d221a0dfe355adcdf0592bb64461df7 (patch)
treef83a55b6caf5ab74533e352763664146d1a071be /include/llvm-c
parent78099d11ffffee2f01fd06fc8d0904858acd5047 (diff)
downloadexternal_llvm-aca74f0e0d221a0dfe355adcdf0592bb64461df7.zip
external_llvm-aca74f0e0d221a0dfe355adcdf0592bb64461df7.tar.gz
external_llvm-aca74f0e0d221a0dfe355adcdf0592bb64461df7.tar.bz2
Wrap the #include of <stdbool.h> in an #ifndef __cplusplus.
This should fix the MSVC build. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191357 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm-c')
-rw-r--r--include/llvm-c/lto.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/llvm-c/lto.h b/include/llvm-c/lto.h
index 40110fd..d960617 100644
--- a/include/llvm-c/lto.h
+++ b/include/llvm-c/lto.h
@@ -16,7 +16,9 @@
#ifndef LLVM_C_LTO_H
#define LLVM_C_LTO_H
+#ifndef __cplusplus
#include <stdbool.h>
+#endif
#include <stddef.h>
#include <unistd.h>