diff options
Diffstat (limited to 'llvm/include/llvm-c/Support.h')
-rw-r--r-- | llvm/include/llvm-c/Support.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/llvm/include/llvm-c/Support.h b/llvm/include/llvm-c/Support.h index 097f784246c5..866df32efa98 100644 --- a/llvm/include/llvm-c/Support.h +++ b/llvm/include/llvm-c/Support.h @@ -15,11 +15,10 @@ #define LLVM_C_SUPPORT_H #include "llvm-c/DataTypes.h" +#include "llvm-c/ExternC.h" #include "llvm-c/Types.h" -#ifdef __cplusplus -extern "C" { -#endif +LLVM_C_EXTERN_C_BEGIN /** * This function permanently loads the dynamic library at the given path. @@ -58,8 +57,6 @@ void *LLVMSearchForAddressOfSymbol(const char *symbolName); */ void LLVMAddSymbol(const char *symbolName, void *symbolValue); -#ifdef __cplusplus -} -#endif +LLVM_C_EXTERN_C_END #endif |