aboutsummaryrefslogtreecommitdiff
path: root/src/mpack
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2023-04-19 21:11:12 +0200
committerGitHub <noreply@github.com>2023-04-19 21:11:12 +0200
commite81331c2b0b6490cfc4204ffd41b7d3df6b2cd8b (patch)
tree0cc40cde87dd971c75f49e079649c259b300b6ab /src/mpack
parent706f871014b46300180156590ff269ee38473989 (diff)
parent1e60e8c0406f6b4b51c51abb5f53e25bd52fee5e (diff)
downloadrneovim-e81331c2b0b6490cfc4204ffd41b7d3df6b2cd8b.tar.gz
rneovim-e81331c2b0b6490cfc4204ffd41b7d3df6b2cd8b.tar.bz2
rneovim-e81331c2b0b6490cfc4204ffd41b7d3df6b2cd8b.zip
Merge pull request #23106 from bfredl/nlua0
refactor(build): use vendored versions of mpack and luabitop
Diffstat (limited to 'src/mpack')
-rw-r--r--src/mpack/lmpack.c3
-rw-r--r--src/mpack/lmpack.h3
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);