/CocosDenshion/include/Export.h
https://bitbucket.org/Tsiannian/cocos2d-x · C++ Header · 25 lines · 23 code · 2 blank · 0 comment · 0 complexity · 9c36e61140b0f4ac6af6f6ed20dae25c MD5 · raw file
- #ifndef __EXPORT_COMMON__
- #define __EXPORT_COMMON__
- #if defined(SHP)
- #include <FBaseConfig.h>
- #define EXPORT_DLL _EXPORT_
- #elif defined(_WIN32)
- #if defined(_EXPORT_DLL_)
- #define EXPORT_DLL __declspec(dllexport)
- #elif defined(IGNORE_EXPORT)
- #define EXPORT_DLL
- #else /* use a DLL library */
- #define EXPORT_DLL __declspec(dllimport)
- #endif
- #else
- #if defined(_SHARED_)
- #define EXPORT_DLL __attribute__((visibility("default")))
- #elif defined(IGNORE_EXPORT)
- #define EXPORT_DLL
- #else
- #define EXPORT_DLL
- #endif
- #endif
- #endif // end of __EXPORT_COMMON__