[cfe-commits] [libcxxabi] r136682 - /libcxxabi/trunk/include/cxxabi.h

Nick Kledzik kledzik at apple.com
Mon Aug 1 22:15:26 PDT 2011


Author: kledzik
Date: Tue Aug  2 00:15:26 2011
New Revision: 136682

URL: http://llvm.org/viewvc/llvm-project?rev=136682&view=rev
Log:
make cxxabi.h safe for C code to include

Modified:
    libcxxabi/trunk/include/cxxabi.h

Modified: libcxxabi/trunk/include/cxxabi.h
URL: http://llvm.org/viewvc/llvm-project/libcxxabi/trunk/include/cxxabi.h?rev=136682&r1=136681&r2=136682&view=diff
==============================================================================
--- libcxxabi/trunk/include/cxxabi.h (original)
+++ libcxxabi/trunk/include/cxxabi.h Tue Aug  2 00:15:26 2011
@@ -20,6 +20,9 @@
 
 #define LIBCXXABI_NORETURN  __attribute__((noreturn))
 
+
+#ifdef __cplusplus
+
 namespace std {
     class type_info; // forward declaration
 }
@@ -183,6 +186,7 @@
   } // extern "C"
 } // namespace __cxxabiv1
 
+#endif // __cplusplus
 
 
 #endif // __CXXABI_H 





More information about the cfe-commits mailing list