Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not include compat-5.3.h in luv header file #310

Merged

Conversation

joerg-krause
Copy link
Contributor

Exposing the compat-5.3.h header file directly in the luv.h header file
is not a good idea, because it causes redefinition errors when building,
for example latest luvi version 2.8.0, with a shared luv library and
LuaJIT 2.0.5.

Therefore, include the compat header file in the luv.c source file.

Note, that luvi version 2.8.0 still fails to build against the shared luv
library using LuaJIT 2.0.5, as it does use luaL_newlib which is not
available in Lua 5.1. However, this is unrelated to the luv library as
luvi itself should define the macro for Lua 5.1.

Exposing the compat-5.3.h header file directly in the luv.h header file
is not a good idea, because it causes redefinition errors when building,
for example latest luvi version 2.8.0, with a shared luv library and
LuaJIT 2.0.5.

Therefore, include the compat header file in the luv.c source file.

Note, that luvi version 2.8.0 still fails to build against the shared luv
library using LuaJIT 2.0.5, as it does use `luaL_newlib` which is not
available in Lua 5.1. However, this is unrelated to the luv library as
luvi itself should define the macro for Lua 5.1.
@joerg-krause
Copy link
Contributor Author

Any feedback on this?

@rphillips rphillips merged commit 5dad5ef into luvit:master Nov 16, 2018
@joerg-krause joerg-krause deleted the fix-compat-header-redefinitions branch November 16, 2018 20:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants