aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Peach <mrpeach@users.sourceforge.net>2011-10-04 02:31:44 +0000
committerIOhannes m zmölnig <zmoelnig@iem.at>2015-10-14 14:28:31 +0200
commit60e6eefdc94650a0d03d803252467d54b05f46ab (patch)
treefb39333b8eda984eda20fdec08f186c1f8dbaa20
parenta92205679aed1880bf958244811474210a8c2d9b (diff)
Using __declspec(dllexport) for _WIN32 to force the pdlua_setup symbol to be exported. (EXPORT only works if PD_INTERNAL is defined)
svn path=/trunk/externals/loaders/pdlua/; revision=15492
-rw-r--r--src/pdlua.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/pdlua.c b/src/pdlua.c
index 519cd7f..c17af72 100644
--- a/src/pdlua.c
+++ b/src/pdlua.c
@@ -1350,7 +1350,10 @@ static int pdlua_loader
}
/** Start the Lua runtime and register our loader hook. */
-EXTERN void pdlua_setup(void)
+#ifdef _WIN32
+__declspec(dllexport)
+#endif
+void pdlua_setup(void)
{
char pd_lua_path[MAXPDSTRING];
t_pdlua_readerdata reader;