/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

  1. #ifndef __EXPORT_COMMON__
  2. #define __EXPORT_COMMON__
  3. #if defined(SHP)
  4. #include <FBaseConfig.h>
  5. #define EXPORT_DLL _EXPORT_
  6. #elif defined(_WIN32)
  7. #if defined(_EXPORT_DLL_)
  8. #define EXPORT_DLL __declspec(dllexport)
  9. #elif defined(IGNORE_EXPORT)
  10. #define EXPORT_DLL
  11. #else /* use a DLL library */
  12. #define EXPORT_DLL __declspec(dllimport)
  13. #endif
  14. #else
  15. #if defined(_SHARED_)
  16. #define EXPORT_DLL __attribute__((visibility("default")))
  17. #elif defined(IGNORE_EXPORT)
  18. #define EXPORT_DLL
  19. #else
  20. #define EXPORT_DLL
  21. #endif
  22. #endif
  23. #endif // end of __EXPORT_COMMON__