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

Compile Using MinGW-w64 w/ pthreads #574

Open
jrbrtsn opened this issue Aug 15, 2022 · 0 comments
Open

Compile Using MinGW-w64 w/ pthreads #574

jrbrtsn opened this issue Aug 15, 2022 · 0 comments

Comments

@jrbrtsn
Copy link

jrbrtsn commented Aug 15, 2022

Recently I had a need to compile nats.c using MinGW-w64 w/ pthreads. Quickly I discovered an assumption in the project where pthreads is not to be used if _WIN32 is #define'd. After a few hours of hacking, I came up with a patch that makes possible the use of pthreads on Windows when using MinGW-w64 for the compiler. This resulting build has been tested, and works correctly. Since then I have submitted a pull request to the https://github.com/mxe/mxe project.

That said, the proper way to implement this support would involve rearranging the #define code inclusion logic.

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

No branches or pull requests

1 participant