diff options
-rw-r--r-- | src/ffi/mod.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ffi/mod.rs b/src/ffi/mod.rs index 09164b9..41a4729 100644 --- a/src/ffi/mod.rs +++ b/src/ffi/mod.rs @@ -79,9 +79,11 @@ pub(crate) fn keep_lua_symbols() { symbols.push(lua_tocfunction as _); symbols.push(luaL_loadstring as _); symbols.push(luaL_openlibs as _); - if cfg!(any(feature = "lua54", feature = "lua53", feature = "lua52")) { + #[cfg(any(feature = "lua54", feature = "lua53", feature = "lua52"))] + { symbols.push(lua_getglobal as _); symbols.push(lua_setglobal as _); + symbols.push(luaL_setfuncs as _); } } |