summaryrefslogtreecommitdiff
path: root/contrib/llvm-project/llvm/include/llvm-c/Target.h
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/llvm-project/llvm/include/llvm-c/Target.h')
-rw-r--r--contrib/llvm-project/llvm/include/llvm-c/Target.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/contrib/llvm-project/llvm/include/llvm-c/Target.h b/contrib/llvm-project/llvm/include/llvm-c/Target.h
index 4ef641eaf232..518b46d55bc3 100644
--- a/contrib/llvm-project/llvm/include/llvm-c/Target.h
+++ b/contrib/llvm-project/llvm/include/llvm-c/Target.h
@@ -19,12 +19,11 @@
#ifndef LLVM_C_TARGET_H
#define LLVM_C_TARGET_H
+#include "llvm-c/ExternC.h"
#include "llvm-c/Types.h"
#include "llvm/Config/llvm-config.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
+LLVM_C_EXTERN_C_BEGIN
/**
* @defgroup LLVMCTarget Target information
@@ -288,8 +287,6 @@ unsigned long long LLVMOffsetOfElement(LLVMTargetDataRef TD,
* @}
*/
-#ifdef __cplusplus
-}
-#endif /* defined(__cplusplus) */
+LLVM_C_EXTERN_C_END
#endif