2012-08-15 20:02:54 +00:00
|
|
|
/*===-- clang-c/Platform.h - C Index platform decls -------------*- C -*-===*\
|
|
|
|
|* *|
|
|
|
|
|* The LLVM Compiler Infrastructure *|
|
|
|
|
|* *|
|
|
|
|
|* This file is distributed under the University of Illinois Open Source *|
|
|
|
|
|* License. See LICENSE.TXT for details. *|
|
|
|
|
|* *|
|
|
|
|
|*===----------------------------------------------------------------------===*|
|
|
|
|
|* *|
|
|
|
|
|* This header provides platform specific macros (dllimport, deprecated, ...) *|
|
|
|
|
|* *|
|
|
|
|
\*===----------------------------------------------------------------------===*/
|
|
|
|
|
2015-01-18 16:23:48 +00:00
|
|
|
#ifndef LLVM_CLANG_C_PLATFORM_H
|
|
|
|
#define LLVM_CLANG_C_PLATFORM_H
|
2012-08-15 20:02:54 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* 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
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif
|