From 062d2281d5e19381cde0fa2da1c305b9204594cc Mon Sep 17 00:00:00 2001 From: ThePhD Date: Sun, 17 Apr 2016 21:14:33 -0400 Subject: [PATCH] bit32 was deprecated, apparently. Lovely. --- sol/state_view.hpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sol/state_view.hpp b/sol/state_view.hpp index d102ad7d..d0c99d08 100644 --- a/sol/state_view.hpp +++ b/sol/state_view.hpp @@ -107,14 +107,14 @@ public: lua_pop(L, 1); break; case lib::bit32: -#if SOL_LUA_VERSION > 501 - luaL_requiref(L, "bit32", luaopen_bit32, 1); - lua_pop(L, 1); -#elif defined(SOL_LUAJIT) +#ifdef SOL_LUAJIT luaL_requiref(L, "bit32", luaopen_bit, 1); lua_pop(L, 1); +#elif SOL_LUA_VERSION == 502 + luaL_requiref(L, "bit32", luaopen_bit32, 1); + lua_pop(L, 1); #else -#endif // Lua 5.2+ only +#endif // Lua 5.2 only (deprecated in 5.3 (503)) break; case lib::io: luaL_requiref(L, "io", luaopen_io, 1);