🛠️🐜 Antkeeper superbuild with dependencies included https://antkeeper.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
889 B

  1. #ifndef ENTT_CORE_ATTRIBUTE_H
  2. #define ENTT_CORE_ATTRIBUTE_H
  3. #ifndef ENTT_EXPORT
  4. # if defined _WIN32 || defined __CYGWIN__ || defined _MSC_VER
  5. # define ENTT_EXPORT __declspec(dllexport)
  6. # define ENTT_IMPORT __declspec(dllimport)
  7. # define ENTT_HIDDEN
  8. # elif defined __GNUC__ && __GNUC__ >= 4
  9. # define ENTT_EXPORT __attribute__((visibility("default")))
  10. # define ENTT_IMPORT __attribute__((visibility("default")))
  11. # define ENTT_HIDDEN __attribute__((visibility("hidden")))
  12. # else /* Unsupported compiler */
  13. # define ENTT_EXPORT
  14. # define ENTT_IMPORT
  15. # define ENTT_HIDDEN
  16. # endif
  17. #endif
  18. #ifndef ENTT_API
  19. # if defined ENTT_API_EXPORT
  20. # define ENTT_API ENTT_EXPORT
  21. # elif defined ENTT_API_IMPORT
  22. # define ENTT_API ENTT_IMPORT
  23. # else /* No API */
  24. # define ENTT_API
  25. # endif
  26. #endif
  27. #endif