[cfe-commits] [libcxx] r109791 - /libcxx/trunk/include/complex.h

Howard Hinnant hhinnant at apple.com
Thu Jul 29 11:43:15 PDT 2010


Author: hhinnant
Date: Thu Jul 29 13:43:15 2010
New Revision: 109791

URL: http://llvm.org/viewvc/llvm-project?rev=109791&view=rev
Log:
Make complex.h play nice with C

Modified:
    libcxx/trunk/include/complex.h

Modified: libcxx/trunk/include/complex.h
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/complex.h?rev=109791&r1=109790&r2=109791&view=diff
==============================================================================
--- libcxx/trunk/include/complex.h (original)
+++ libcxx/trunk/include/complex.h Thu Jul 29 13:43:15 2010
@@ -18,8 +18,16 @@
 
 */
 
+#ifdef __cplusplus
+
 #include <ccomplex>
 
+#else
+
+#include_next <complex.h>
+
+#endif
+
 #pragma GCC system_header
 
 #endif  // _LIBCPP_COMPLEX_H





More information about the cfe-commits mailing list