make cxxabi.h safe for C code to include
git-svn-id: https://llvm.org/svn/llvm-project/libcxxabi/trunk@136682 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/include/cxxabi.h b/include/cxxabi.h
index 196e230..933ff21 100644
--- a/include/cxxabi.h
+++ b/include/cxxabi.h
@@ -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