20 lines
678 B
C
20 lines
678 B
C
#ifndef IKAPDEVICE_GLOBAL_H
|
|
#define IKAPDEVICE_GLOBAL_H
|
|
|
|
// 定义库导出宏(如果需要构建动态库)
|
|
#if defined(_MSC_VER) || defined(WIN64) || defined(_WIN64) || defined(__WIN64__) || defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__)
|
|
# define DECL_EXPORT __declspec(dllexport)
|
|
# define DECL_IMPORT __declspec(dllimport)
|
|
#else
|
|
# define DECL_EXPORT __attribute__((visibility("default")))
|
|
# define DECL_IMPORT __attribute__((visibility("default")))
|
|
#endif
|
|
|
|
#if defined(IKAPDEVICE_LIBRARY)
|
|
# define IKAPDEVICE_EXPORT DECL_EXPORT
|
|
#else
|
|
# define IKAPDEVICE_EXPORT DECL_IMPORT
|
|
#endif
|
|
|
|
#endif // IKAPDEVICE_GLOBAL_H
|