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