Go to the documentation of this file.
10 #ifndef __TN_EXPORT_H__
11 #define __TN_EXPORT_H__
16 #if defined _WIN32 || defined __CYGWIN__
17 #define TN_EXPORT_DLL_IMPORT __declspec(dllimport)
18 #define TN_EXPORT_DLL_EXPORT __declspec(dllexport)
19 #define TN_EXPORT_DLL_LOCAL
22 #define TN_EXPORT_DLL_IMPORT __attribute__ ((visibility ("default")))
23 #define TN_EXPORT_DLL_EXPORT __attribute__ ((visibility ("default")))
24 #define TN_EXPORT_DLL_LOCAL __attribute__ ((visibility ("hidden")))
26 #define TN_EXPORT_DLL_IMPORT
27 #define TN_EXPORT_DLL_EXPORT
28 #define TN_EXPORT_DLL_LOCAL
36 #ifdef TN_EHP_BUILD_DYN_LIB // compile as a dynamic lib
37 #ifdef TN_EHP_NO_EXPORT // use as static lib inside the same component(for internal excutable target)
38 #define TN_EHP_API_DECL
39 #else // export by default
40 #define TN_EHP_API_DECL TN_EXPORT_DLL_EXPORT
41 #endif // TASDK_NO_EXPORT
44 #pragma warning(disable: 4251)
46 #define TN_EHP_API_DECL
49 #ifdef TN_EHP_DYN_LINK // use as a dynamic lib
50 #define TN_EHP_API TN_EXPORT_DLL_IMPORT
51 #else // use as a static lib
53 #endif // TN_EHP_BUILD_DYN_LIB
57 #endif //__TN_EXPORT_H__