diff options
Diffstat (limited to 'src/mpack')
-rw-r--r-- | src/mpack/lmpack.c | 3 | ||||
-rw-r--r-- | src/mpack/lmpack.h | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/mpack/lmpack.c b/src/mpack/lmpack.c index 957bac37cc..8b45136cae 100644 --- a/src/mpack/lmpack.c +++ b/src/mpack/lmpack.c @@ -1171,6 +1171,9 @@ static const luaL_reg mpack_functions[] = { {NULL, NULL} }; +#ifdef NLUA_WIN32 + __declspec(dllexport) +#endif int luaopen_mpack(lua_State *L) { /* Unpacker */ diff --git a/src/mpack/lmpack.h b/src/mpack/lmpack.h index e35f40fab6..84f786cc8f 100644 --- a/src/mpack/lmpack.h +++ b/src/mpack/lmpack.h @@ -1,3 +1,6 @@ #include <lua.h> +#ifdef NLUA_WIN32 + __declspec(dllexport) +#endif int luaopen_mpack(lua_State *L); |