File indexing completed on 2026-05-10 08:36:18
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014 #ifndef LLVM_CLANG_C_PLATFORM_H
0015 #define LLVM_CLANG_C_PLATFORM_H
0016
0017 #include "clang-c/ExternC.h"
0018
0019 LLVM_CLANG_C_EXTERN_C_BEGIN
0020
0021
0022 #ifndef CINDEX_NO_EXPORTS
0023 #define CINDEX_EXPORTS
0024 #endif
0025 #ifdef _WIN32
0026 #ifdef CINDEX_EXPORTS
0027 #ifdef _CINDEX_LIB_
0028 #define CINDEX_LINKAGE __declspec(dllexport)
0029 #else
0030 #define CINDEX_LINKAGE __declspec(dllimport)
0031 #endif
0032 #endif
0033 #elif defined(CINDEX_EXPORTS) && defined(__GNUC__)
0034 #define CINDEX_LINKAGE __attribute__((visibility("default")))
0035 #endif
0036
0037 #ifndef CINDEX_LINKAGE
0038 #define CINDEX_LINKAGE
0039 #endif
0040
0041 #ifdef __GNUC__
0042 #define CINDEX_DEPRECATED __attribute__((deprecated))
0043 #else
0044 #ifdef _MSC_VER
0045 #define CINDEX_DEPRECATED __declspec(deprecated)
0046 #else
0047 #define CINDEX_DEPRECATED
0048 #endif
0049 #endif
0050
0051 LLVM_CLANG_C_EXTERN_C_END
0052
0053 #endif