Path: blob/main/contrib/llvm-project/clang/include/clang-c/Platform.h
35233 views
/*===-- clang-c/Platform.h - C Index platform decls -------------*- C -*-===*\1|* *|2|* Part of the LLVM Project, under the Apache License v2.0 with LLVM *|3|* Exceptions. *|4|* See https://llvm.org/LICENSE.txt for license information. *|5|* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception *|6|* *|7|*===----------------------------------------------------------------------===*|8|* *|9|* This header provides platform specific macros (dllimport, deprecated, ...) *|10|* *|11\*===----------------------------------------------------------------------===*/1213#ifndef LLVM_CLANG_C_PLATFORM_H14#define LLVM_CLANG_C_PLATFORM_H1516#include "clang-c/ExternC.h"1718LLVM_CLANG_C_EXTERN_C_BEGIN1920/* Windows DLL import/export. */21#ifndef CINDEX_NO_EXPORTS22#define CINDEX_EXPORTS23#endif24#ifdef _WIN3225#ifdef CINDEX_EXPORTS26#ifdef _CINDEX_LIB_27#define CINDEX_LINKAGE __declspec(dllexport)28#else29#define CINDEX_LINKAGE __declspec(dllimport)30#endif31#endif32#elif defined(CINDEX_EXPORTS) && defined(__GNUC__)33#define CINDEX_LINKAGE __attribute__((visibility("default")))34#endif3536#ifndef CINDEX_LINKAGE37#define CINDEX_LINKAGE38#endif3940#ifdef __GNUC__41#define CINDEX_DEPRECATED __attribute__((deprecated))42#else43#ifdef _MSC_VER44#define CINDEX_DEPRECATED __declspec(deprecated)45#else46#define CINDEX_DEPRECATED47#endif48#endif4950LLVM_CLANG_C_EXTERN_C_END5152#endif535455