From ffaf74f1477d3182ffc70bcc9913effc44c90ea7 Mon Sep 17 00:00:00 2001 From: bfredl Date: Thu, 20 Apr 2023 14:41:47 +0200 Subject: fix(build): distinguish vim.mpack from global require'mpack' problem: the api of vim.mpack is not compatible with a system provided mpack solution: don't require 'mpack' directly from the system path --- src/mpack/lmpack.c | 3 --- src/mpack/lmpack.h | 3 --- 2 files changed, 6 deletions(-) (limited to 'src/mpack') diff --git a/src/mpack/lmpack.c b/src/mpack/lmpack.c index 8b45136cae..957bac37cc 100644 --- a/src/mpack/lmpack.c +++ b/src/mpack/lmpack.c @@ -1171,9 +1171,6 @@ 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 84f786cc8f..e35f40fab6 100644 --- a/src/mpack/lmpack.h +++ b/src/mpack/lmpack.h @@ -1,6 +1,3 @@ #include -#ifdef NLUA_WIN32 - __declspec(dllexport) -#endif int luaopen_mpack(lua_State *L); -- cgit