diff options
Diffstat (limited to 'llvm/include/llvm-c/Types.h')
-rw-r--r-- | llvm/include/llvm-c/Types.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/llvm/include/llvm-c/Types.h b/llvm/include/llvm-c/Types.h index 612c7d3eff32..4e02498a2348 100644 --- a/llvm/include/llvm-c/Types.h +++ b/llvm/include/llvm-c/Types.h @@ -15,10 +15,9 @@ #define LLVM_C_TYPES_H #include "llvm-c/DataTypes.h" +#include "llvm-c/ExternC.h" -#ifdef __cplusplus -extern "C" { -#endif +LLVM_C_EXTERN_C_BEGIN /** * @defgroup LLVMCSupportTypes Types and Enumerations @@ -172,8 +171,6 @@ typedef struct LLVMOpaqueBinary *LLVMBinaryRef; * @} */ -#ifdef __cplusplus -} -#endif +LLVM_C_EXTERN_C_END #endif |