summaryrefslogtreecommitdiffstats
path: root/llvm/include/llvm-c/ErrorHandling.h
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/include/llvm-c/ErrorHandling.h')
-rw-r--r--llvm/include/llvm-c/ErrorHandling.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/llvm/include/llvm-c/ErrorHandling.h b/llvm/include/llvm-c/ErrorHandling.h
index 4927349d898..c6f7ff3ed69 100644
--- a/llvm/include/llvm-c/ErrorHandling.h
+++ b/llvm/include/llvm-c/ErrorHandling.h
@@ -14,9 +14,9 @@
#ifndef LLVM_C_ERROR_HANDLING_H
#define LLVM_C_ERROR_HANDLING_H
-#ifdef __cplusplus
-extern "C" {
-#endif
+#include "llvm-c/ExternC.h"
+
+LLVM_C_EXTERN_C_BEGIN
typedef void (*LLVMFatalErrorHandler)(const char *Reason);
@@ -42,8 +42,6 @@ void LLVMResetFatalErrorHandler(void);
*/
void LLVMEnablePrettyStackTrace(void);
-#ifdef __cplusplus
-}
-#endif
+LLVM_C_EXTERN_C_END
#endif
OpenPOWER on IntegriCloud