]> git.tdb.fi Git - libs/core.git/blobdiff - source/core/mspcore_api.h
Add decorations for things which are considered part of the API
[libs/core.git] / source / core / mspcore_api.h
diff --git a/source/core/mspcore_api.h b/source/core/mspcore_api.h
new file mode 100644 (file)
index 0000000..eed6bcc
--- /dev/null
@@ -0,0 +1,18 @@
+#ifndef MSP_CORE_API_H_
+#define MSP_CORE_API_H_
+
+#if defined(_WIN32)
+#if defined(MSPCORE_BUILD)
+#define MSPCORE_API __declspec(dllexport)
+#elif defined(MSPCORE_IMPORT)
+#define MSPCORE_API __declspec(dllimport)
+#else
+#define MSPCORE_API
+#endif
+#elif defined(__GNUC__)
+#define MSPCORE_API __attribute__((visibility("default")))
+#else
+#define MSPCORE_API
+#endif
+
+#endif