We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
dllexport
1 parent 9392f21 commit 93b7dbbCopy full SHA for 93b7dbb
1 file changed
mojoal.c
@@ -11,7 +11,10 @@
11
#include <math.h>
12
#include <float.h>
13
14
-#ifdef _WIN32
+/* Unless compiling statically into another app, we want the public API
15
+ to export on Windows. Define these before including al.h, so we override
16
+ its attempt to mark these as `dllimport`. */
17
+#if defined(_WIN32) && !defined(AL_LIBTYPE_STATIC)
18
#define AL_API __declspec(dllexport)
19
#define ALC_API __declspec(dllexport)
20
#endif
0 commit comments