Tangent128 / luasdl2

A pure C binding of SDL 2.0 for Lua 5.1, Lua 5.2, and LuaJIT.
ISC License
385 stars 74 forks source link

Compile error with Lua5.2 #80

Closed gvtret closed 3 years ago

gvtret commented 5 years ago

Error in compile src/window.c:950 due to lua_getuservalue(...) return void in Lua5.2 libs.

gamax92 commented 4 years ago

Also due to lua_geti at src/window.c:915 not existing in Lua5.2

You can look at lua-compat-5.3 on how to add compatibility with Lua5.2 lua_getuservalue lua_geti

With these two fixes lua-sdl2 builds for Lua 5.2 again

Additionally, INSTALL.md should not say luarocks install lua-sdl2-scm-3.rockspec for building from source, it should be luarocks make so it uses the current repository instead of cloning another

markand commented 3 years ago

Thanks!