1 /*===- llvm-c/ExternC.h - Wrapper for 'extern "C"' ----------------*- C -*-===*\
3 |* Part of the LLVM Project, under the Apache License v2.0 with LLVM *|
5 |* See https://llvm.org/LICENSE.txt for license information. *|
6 |* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception *|
8 |*===----------------------------------------------------------------------===*|
10 |* This file defines an 'extern "C"' wrapper *|
12 \*===----------------------------------------------------------------------===*/
14 #ifndef LLVM_C_EXTERNC_H
15 #define LLVM_C_EXTERNC_H
18 #define LLVM_C_STRICT_PROTOTYPES_BEGIN \
19 _Pragma("clang diagnostic push") \
20 _Pragma("clang diagnostic error \"-Wstrict-prototypes\"")
21 #define LLVM_C_STRICT_PROTOTYPES_END _Pragma("clang diagnostic pop")
23 #define LLVM_C_STRICT_PROTOTYPES_BEGIN
24 #define LLVM_C_STRICT_PROTOTYPES_END
28 #define LLVM_C_EXTERN_C_BEGIN \
30 LLVM_C_STRICT_PROTOTYPES_BEGIN
31 #define LLVM_C_EXTERN_C_END \
32 LLVM_C_STRICT_PROTOTYPES_END \
35 #define LLVM_C_EXTERN_C_BEGIN LLVM_C_STRICT_PROTOTYPES_BEGIN
36 #define LLVM_C_EXTERN_C_END LLVM_C_STRICT_PROTOTYPES_END