Skip to content

Add support for Cygwin #215

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

Merged
merged 2 commits into from
May 29, 2016
Merged

Add support for Cygwin #215

merged 2 commits into from
May 29, 2016

Conversation

BorisSchaeling
Copy link
Contributor

The 64-bit version of Cygwin defines PyThread_create_key() with a return type of long (instead of int; some background information can be found on the cygwin-apps mailing list). This pull request makes pybind11 use decltype() to deduce the type to use for pybind11::detail::internals::tstate. I also added the flag -Wconversion to CMakeLists.txt to help detect this kind of problems in the future.

I tested pybind11 with the changes on Cygwin (only 64-bit version), Linux (g++) and Windows (VS2015).

@wjakob wjakob merged commit 20ee935 into pybind:master May 29, 2016
@wjakob
Copy link
Member

wjakob commented May 29, 2016

Hi Boris,

thank you for the Cygwin fixes. There were some conflicts with another (big!) PR: #207, which I tried to resolve. Please let me know if I broke something.

Cheers,
Wenzel

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