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

Lua5.3 cpp fixups #22

Merged
merged 2 commits into from
Jul 16, 2016
Merged

Conversation

cbeck88
Copy link
Contributor

@cbeck88 cbeck88 commented Jul 8, 2016

Related to #21
It turned out there were more random things I needed to do to get clang to be happy to compile, mainly, clang++ wasn't willing to allow implicit conversions of (void*) to and from other things even when -fpermissive was used. When compiling as C I guess it was fine with it.

Maybe there was some flag I don't know about, but on the other hand clang++ was fine with the rest of lua.

Another thing I did was put the typedef int bool behind a #ifndef __cplusplus, apparently only gcc is actually willing to just ignore that, clang calls it an error.

after this commit it works with g++
after this commit, clang++ will compile eris without errors, and
the tests pass.

tested with clang-3.5 and clang-3.7

also, put the `typedef int bool;` behind `#ifndef __cplusplus`
@fnuecke fnuecke merged commit 5ca81a0 into fnuecke:master-lua5.3 Jul 16, 2016
@fnuecke
Copy link
Owner

fnuecke commented Jul 16, 2016

Thanks a lot!

(And sorry for the delay, was on vacation for a few days.)

@cbeck88
Copy link
Contributor Author

cbeck88 commented Jul 20, 2016

No problem, cheers!

@cbeck88 cbeck88 deleted the lua5.3-cpp-fixups branch February 18, 2017 16:27
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.

None yet

2 participants