]> granicus.if.org Git - clang/commitdiff
Protect iso646.h from C++ (although I can't imagine why someone would
authorEli Friedman <eli.friedman@gmail.com>
Wed, 21 May 2008 03:11:31 +0000 (03:11 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Wed, 21 May 2008 03:11:31 +0000 (03:11 +0000)
need it...).  Patch by Mike Stump.

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

lib/Headers/iso646.h

index bca96e6180f26a8f3d0d04e79cc5a6ba10b83ea2..dca13c5babe5a93f178550bcf0f65401b8f5e3ce 100644 (file)
@@ -26,6 +26,7 @@
 #ifndef __ISO646_H
 #define __ISO646_H
 
+#ifndef __cplusplus
 #define and    &&
 #define and_eq &=
 #define bitand &
@@ -37,5 +38,6 @@
 #define or_eq  |=
 #define xor    ^
 #define xor_eq ^=
+#endif
 
 #endif /* __ISO646_H */