2012-06-29 06:01:06 +08:00
|
|
|
/*===-- clang-c/Platform.h - C Index platform decls -------------*- C -*-===*\
|
|
|
|
|* *|
|
2019-01-19 16:50:56 +08:00
|
|
|
|* 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 *|
|
2012-06-29 06:01:06 +08:00
|
|
|
|* *|
|
|
|
|
|*===----------------------------------------------------------------------===*|
|
|
|
|
|* *|
|
|
|
|
|* This header provides platform specific macros (dllimport, deprecated, ...) *|
|
|
|
|
|* *|
|
|
|
|
\*===----------------------------------------------------------------------===*/
|
|
|
|
|
2014-08-14 00:25:19 +08:00
|
|
|
#ifndef LLVM_CLANG_C_PLATFORM_H
|
|
|
|
#define LLVM_CLANG_C_PLATFORM_H
|
2012-06-29 06:01:06 +08:00
|
|
|
|
2019-11-15 05:57:57 +08:00
|
|
|
#include "clang-c/ExternC.h"
|
|
|
|
|
|
|
|
LLVM_CLANG_C_EXTERN_C_BEGIN
|
2012-06-29 06:01:06 +08:00
|
|
|
|
2020-02-21 04:15:54 +08:00
|
|
|
/* MSVC DLL import/export. */
|
|
|
|
#ifdef _MSC_VER
|
|
|
|
#ifdef _CINDEX_LIB_
|
|
|
|
#define CINDEX_LINKAGE __declspec(dllexport)
|
|
|
|
#else
|
|
|
|
#define CINDEX_LINKAGE __declspec(dllimport)
|
2012-06-29 06:01:06 +08:00
|
|
|
#endif
|
2020-02-21 04:15:54 +08:00
|
|
|
#else
|
2012-06-29 06:01:06 +08:00
|
|
|
#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
|
|
|
|
|
2019-11-15 05:57:57 +08:00
|
|
|
LLVM_CLANG_C_EXTERN_C_END
|
|
|
|
|
2012-06-29 06:01:06 +08:00
|
|
|
#endif
|