summaryrefslogtreecommitdiff
path: root/include/util/Exportable.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/util/Exportable.hpp')
-rw-r--r--include/util/Exportable.hpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/include/util/Exportable.hpp b/include/util/Exportable.hpp
new file mode 100644
index 0000000..28ac7ff
--- /dev/null
+++ b/include/util/Exportable.hpp
@@ -0,0 +1,21 @@
+#ifndef __EXPORTABLE_H
+#define __EXPORTABLE_H
+
+#ifndef _WIN32
+
+#define SINGLETON_EXPORT
+#define SINGLETON_EXTERN
+
+#else
+
+#ifndef SHARED
+#define SINGLETON_EXPORT __declspec(dllexport)
+#define SINGLETON_EXTERN
+#else
+#define SINGLETON_EXPORT __declspec(dllimport)
+#define SINGLETON_EXTERN extern
+#endif
+
+#endif // _WIN32
+
+#endif