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

Clean up lua includes #1988

Merged
merged 1 commit into from
Jul 2, 2023
Merged

Conversation

joto
Copy link
Collaborator

@joto joto commented Jun 30, 2023

There was a bit of a mess of different (types of) includes. We now only use '#include <lua.hpp>' which includes all Lua C headers correctly and also works for LuaJIT.

Technically it might include more than we need in some cases, because lua.hpp includes several C headers some of which are only needed sometimes, but the largest one (lua.h) is the one we always need, the others are tiny.

There was a bit of a mess of different (types of) includes. We now only
use '#include <lua.hpp>' which includes all Lua C headers correctly and
also works for LuaJIT.

Technically it might include more than we need in some cases, because
lua.hpp includes several C headers some of which are only needed
sometimes, but the largest one (lua.h) is the one we always need, the
others are tiny.
@lonvia lonvia merged commit c48168e into osm2pgsql-dev:master Jul 2, 2023
27 checks passed
@joto joto deleted the cleanup-lua-includes branch July 2, 2023 11:43
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.

2 participants