Correct the LuaJIT 2.1.0 condition

This commit is contained in:
David Avedissian 2016-12-25 13:21:13 +00:00 committed by GitHub
parent 3aa42c5db8
commit 9382ceb1b5

View File

@ -158,7 +158,7 @@ inline const char* kepler_lua_compat_get_string(lua_State* L, void* ud, size_t*
return ls->s;
}
#if !defined(SOL_LUAJIT) || ((SOL_LUAJIT_VERSION - 20100) <= 0)
#if !defined(SOL_LUAJIT) || (SOL_LUAJIT_VERSION < 20100)
// Luajit 2.1.0 has this function already
inline int luaL_loadbufferx(lua_State* L, const char* buff, size_t size, const char* name, const char*) {
@ -172,4 +172,4 @@ inline int luaL_loadbufferx(lua_State* L, const char* buff, size_t size, const c
#endif /* Lua 5.1 */
#endif // SOL_5_1_0_H
#endif // SOL_5_1_0_H