diff options
| author | untodesu <kirill@untode.su> | 2025-03-15 16:22:09 +0500 |
|---|---|---|
| committer | untodesu <kirill@untode.su> | 2025-03-15 16:22:09 +0500 |
| commit | 3bf42c6ff3805a0d42bbc661794a95ff31bedc26 (patch) | |
| tree | 05049955847504808d6bed2bb7b155f8b03807bb /deps/include/entt/core/attribute.h | |
| parent | 02294547dcde0d4ad76e229106702261e9f10a51 (diff) | |
| download | voxelius-3bf42c6ff3805a0d42bbc661794a95ff31bedc26.tar.bz2 voxelius-3bf42c6ff3805a0d42bbc661794a95ff31bedc26.zip | |
Add whatever I was working on for the last month
Diffstat (limited to 'deps/include/entt/core/attribute.h')
| -rw-r--r-- | deps/include/entt/core/attribute.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/deps/include/entt/core/attribute.h b/deps/include/entt/core/attribute.h new file mode 100644 index 0000000..2af32d9 --- /dev/null +++ b/deps/include/entt/core/attribute.h @@ -0,0 +1,30 @@ +#ifndef ENTT_CORE_ATTRIBUTE_H
+#define ENTT_CORE_ATTRIBUTE_H
+
+#ifndef ENTT_EXPORT
+# if defined _WIN32 || defined __CYGWIN__ || defined _MSC_VER
+# define ENTT_EXPORT __declspec(dllexport)
+# define ENTT_IMPORT __declspec(dllimport)
+# define ENTT_HIDDEN
+# elif defined __GNUC__ && __GNUC__ >= 4
+# define ENTT_EXPORT __attribute__((visibility("default")))
+# define ENTT_IMPORT __attribute__((visibility("default")))
+# define ENTT_HIDDEN __attribute__((visibility("hidden")))
+# else /* Unsupported compiler */
+# define ENTT_EXPORT
+# define ENTT_IMPORT
+# define ENTT_HIDDEN
+# endif
+#endif
+
+#ifndef ENTT_API
+# if defined ENTT_API_EXPORT
+# define ENTT_API ENTT_EXPORT
+# elif defined ENTT_API_IMPORT
+# define ENTT_API ENTT_IMPORT
+# else /* No API */
+# define ENTT_API
+# endif
+#endif
+
+#endif
|
