[llvm] r191357 - Wrap the #include of <stdbool.h> in an #ifndef __cplusplus.

Peter Collingbourne peter at pcc.me.uk
Wed Sep 25 00:11:58 PDT 2013


Author: pcc
Date: Wed Sep 25 02:11:58 2013
New Revision: 191357

URL: http://llvm.org/viewvc/llvm-project?rev=191357&view=rev
Log:
Wrap the #include of <stdbool.h> in an #ifndef __cplusplus.

This should fix the MSVC build.

Modified:
    llvm/trunk/include/llvm-c/lto.h

Modified: llvm/trunk/include/llvm-c/lto.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm-c/lto.h?rev=191357&r1=191356&r2=191357&view=diff
==============================================================================
--- llvm/trunk/include/llvm-c/lto.h (original)
+++ llvm/trunk/include/llvm-c/lto.h Wed Sep 25 02:11:58 2013
@@ -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>
 





More information about the llvm-commits mailing list