EnTT: src/entt/core/attribute.h Source File

EnTT 3.15.0

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