export.h 311 B

123456789101112131415161718
  1. #pragma once
  2. #ifdef _MSC_VER
  3. #define DLLEXPORT __declspec(dllexport)
  4. #elif defined(__GNUC__)
  5. #define DLLEXPORT __attribute__ ((visibility("default")))
  6. #else
  7. #error port me!
  8. #endif
  9. #ifdef _MSC_VER
  10. #define DLLIMPORT __declspec(dllimport)
  11. #elif defined(__GNUC__)
  12. #define DLLIMPORT
  13. #else
  14. #error port me!
  15. #endif