30 lines
813 B
C
30 lines
813 B
C
#pragma once
|
||
|
||
/// 命名空间宏
|
||
#define GLTFLOADER_NAMESPACE_BEGIN namespace glTFLoader {
|
||
#define GLTFLOADER_NAMESPACE_END }
|
||
|
||
/// windows 导入导出宏,GLTFLOADER_EXPORTS将在cmake中定义
|
||
/// unix-like 下提供符号可见性控制
|
||
#ifdef GLTFLOADER_STATIC_BUILD
|
||
#define GLTFLOADER_API
|
||
#define GLTFLOADER_LOCAL
|
||
#else
|
||
#ifdef _WIN32
|
||
#ifdef GLTFLOADER_EXPORTS
|
||
#define GLTFLOADER_API __declspec(dllexport)
|
||
#define GLTFLOADER_LOCAL
|
||
#else
|
||
#define GLTFLOADER_API __declspec(dllimport)
|
||
#define GLTFLOADER_LOCAL
|
||
#endif
|
||
#else
|
||
#if __GNUC__ >= 4 || defined(__clang__)
|
||
#define GLTFLOADER_API __attribute__ ((visibility ("default")))
|
||
#define GLTFLOADER_LOCAL __attribute__ ((visibility ("hidden")))
|
||
#else
|
||
#define GLTFLOADER_API
|
||
#define GLTFLOADER_LOCAL
|
||
#endif
|
||
#endif
|
||
#endif |