ExtensionExport.h 833 B

123456789101112131415161718192021222324252627282930313233
  1. #ifndef __CCEXTENSIONEXPORT_H__
  2. #define __CCEXTENSIONEXPORT_H__
  3. #if (defined(WIN32) && defined(_WINDOWS)) || defined(WINRT) || defined(WP8)
  4. #ifdef __MINGW32__
  5. #include <string.h>
  6. #endif
  7. #if defined(CC_STATIC)
  8. #define CC_EX_DLL
  9. #else
  10. #if defined(_USREXDLL)
  11. #define CC_EX_DLL __declspec(dllexport)
  12. #else /* use a DLL library */
  13. #define CC_EX_DLL __declspec(dllimport)
  14. #endif
  15. #endif
  16. /* Define NULL pointer value */
  17. #ifndef NULL
  18. #ifdef __cplusplus
  19. #define NULL 0
  20. #else
  21. #define NULL ((void *)0)
  22. #endif
  23. #endif
  24. #elif defined(_SHARED_)
  25. #define CC_EX_DLL __attribute__((visibility("default")))
  26. #else
  27. #define CC_EX_DLL
  28. #endif
  29. #endif /* __CCEXTENSIONEXPORT_H__*/