mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-20 12:05:48 -04:00

Force `-Werror=strict-prototypes` so that C API tests fail to compile if
we add a non-prototype declaration. This should help avoid regressions
like bddecba4b3
was fixing.
https://reviews.llvm.org/D70285
rdar://problem/57203137
45 lines
1.5 KiB
C
45 lines
1.5 KiB
C
/*===-- clang-c/Platform.h - C Index platform decls -------------*- C -*-===*\
|
|
|* *|
|
|
|* Part of the LLVM Project, under the Apache License v2.0 with LLVM *|
|
|
|* Exceptions. *|
|
|
|* See https://llvm.org/LICENSE.txt for license information. *|
|
|
|* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception *|
|
|
|* *|
|
|
|*===----------------------------------------------------------------------===*|
|
|
|* *|
|
|
|* This header provides platform specific macros (dllimport, deprecated, ...) *|
|
|
|* *|
|
|
\*===----------------------------------------------------------------------===*/
|
|
|
|
#ifndef LLVM_CLANG_C_PLATFORM_H
|
|
#define LLVM_CLANG_C_PLATFORM_H
|
|
|
|
#include "clang-c/ExternC.h"
|
|
|
|
LLVM_CLANG_C_EXTERN_C_BEGIN
|
|
|
|
/* MSVC DLL import/export. */
|
|
#ifdef _MSC_VER
|
|
#ifdef _CINDEX_LIB_
|
|
#define CINDEX_LINKAGE __declspec(dllexport)
|
|
#else
|
|
#define CINDEX_LINKAGE __declspec(dllimport)
|
|
#endif
|
|
#else
|
|
#define CINDEX_LINKAGE
|
|
#endif
|
|
|
|
#ifdef __GNUC__
|
|
#define CINDEX_DEPRECATED __attribute__((deprecated))
|
|
#else
|
|
#ifdef _MSC_VER
|
|
#define CINDEX_DEPRECATED __declspec(deprecated)
|
|
#else
|
|
#define CINDEX_DEPRECATED
|
|
#endif
|
|
#endif
|
|
|
|
LLVM_CLANG_C_EXTERN_C_END
|
|
|
|
#endif
|