summaryrefslogtreecommitdiff
path: root/clang/include/clang-c/Platform.h
diff options
context:
space:
mode:
Diffstat (limited to 'clang/include/clang-c/Platform.h')
-rw-r--r--clang/include/clang-c/Platform.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/clang/include/clang-c/Platform.h b/clang/include/clang-c/Platform.h
index 5284b533253d..3bb66bb0df48 100644
--- a/clang/include/clang-c/Platform.h
+++ b/clang/include/clang-c/Platform.h
@@ -14,9 +14,9 @@
#ifndef LLVM_CLANG_C_PLATFORM_H
#define LLVM_CLANG_C_PLATFORM_H
-#ifdef __cplusplus
-extern "C" {
-#endif
+#include "clang-c/ExternC.h"
+
+LLVM_CLANG_C_EXTERN_C_BEGIN
/* MSVC DLL import/export. */
#ifdef _MSC_VER
@@ -39,7 +39,6 @@ extern "C" {
#endif
#endif
-#ifdef __cplusplus
-}
-#endif
+LLVM_CLANG_C_EXTERN_C_END
+
#endif