SimulatorExport.h 777 B

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