]> git.tdb.fi Git - libs/gl.git/commitdiff
Add missing header
authorMikko Rasa <tdb@tdb.fi>
Thu, 13 Jul 2023 20:12:28 +0000 (23:12 +0300)
committerMikko Rasa <tdb@tdb.fi>
Thu, 13 Jul 2023 20:12:28 +0000 (23:12 +0300)
This was supposed to be in 7864dec.

source/core/mspgl_api.h [new file with mode: 0644]

diff --git a/source/core/mspgl_api.h b/source/core/mspgl_api.h
new file mode 100644 (file)
index 0000000..c3bb1c2
--- /dev/null
@@ -0,0 +1,18 @@
+#ifndef MSP_GL_API_H_
+#define MSP_GL_API_H_
+
+#if defined(_WIN32)
+#if defined(MSPGL_BUILD)
+#define MSPGL_API __declspec(dllexport)
+#elif defined(MSPGL_IMPORT)
+#define MSPGL_API __declspec(dllimport)
+#else
+#define MSPGL_API
+#endif
+#elif defined(__GNUC__)
+#define MSPGL_API __attribute__((visibility("default")))
+#else
+#define MSPGL_API
+#endif
+
+#endif