1/*===-- clang-c/Platform.h - C Index platform decls -------------*- 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 header provides platform specific macros (dllimport, deprecated, ...) *|
12\*===----------------------------------------------------------------------===*/
14#ifndef LLVM_CLANG_C_PLATFORM_H
15#define LLVM_CLANG_C_PLATFORM_H
21/* Windows DLL import/export. */
22#ifndef CINDEX_NO_EXPORTS
23 #define CINDEX_EXPORTS
25#if defined(_WIN32) || defined(__CYGWIN__)
28 #define CINDEX_LINKAGE __declspec(dllexport)
30 #define CINDEX_LINKAGE __declspec(dllimport)
33#elif defined(CINDEX_EXPORTS) && defined(__GNUC__)
34 #define CINDEX_LINKAGE __attribute__((visibility("default")))
38 #define CINDEX_LINKAGE
42 #define CINDEX_DEPRECATED __attribute__((deprecated))
45 #define CINDEX_DEPRECATED __declspec(deprecated)
47 #define CINDEX_DEPRECATED
#define LLVM_CLANG_C_EXTERN_C_END
#define LLVM_CLANG_C_EXTERN_C_BEGIN