export.h 588 B

123456789101112131415161718192021222324252627282930313233
  1. #ifndef TATAKI_EXPORT_H
  2. #define TATAKI_EXPORT_H
  3. #include <bfc/platform/types.h>
  4. #include <api/service/api_service.h>
  5. #ifdef _WIN32
  6. #ifdef TATAKI_STATIC
  7. #define TATAKIAPI
  8. #else
  9. #ifdef TATAKI_EXPORTS
  10. #define TATAKIAPI __declspec(dllexport)
  11. #else
  12. #define TATAKIAPI __declspec(dllimport)
  13. #endif
  14. #endif
  15. #elif defined(__GNUC__)
  16. #ifdef TATAKI_EXPORTS
  17. #define TATAKIAPI __attribute__ ((visibility("default")))
  18. #else
  19. #define TATAKIAPI
  20. #endif
  21. #else
  22. #error port me
  23. #endif
  24. namespace Tataki
  25. {
  26. extern "C" TATAKIAPI size_t Init(api_service *_serviceApi);
  27. extern "C" TATAKIAPI size_t Quit();
  28. }
  29. #endif