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

Visual Studio support #61

Open
BenjiHansell opened this issue Nov 18, 2020 · 5 comments
Open

Visual Studio support #61

BenjiHansell opened this issue Nov 18, 2020 · 5 comments

Comments

@BenjiHansell
Copy link

Please can someone clarify to me the state of Visual Studio support?

It seems that this library doesn't build out of the box with VS2019. There are many issues, the most blatant being the unguarded #include <unistd.h>. However, there's an awful lot of #ifndef WIN32 in the source code, as if at some point, some version of this library worked with some version of Visual Studio.

@RobSanders
Copy link
Collaborator

I personally do not use Visual Studio, and also have not tried to build on Windows as my target platform is Linux. David may be able to offer more insight as the original developer. On my current Linux box (CentOS 7) /usr/include/unistd.h has an internal include guard already in it.

@BenjiHansell
Copy link
Author

Thanks @RobSanders

To clarify, in my original post where I referred to "the unguarded #include <unistd.h>", I just meant that I would expect to see that include excluded from MSVC builds, e.g.:

#ifndef WIN32
#include <unistd.h>
#endif

@RobSanders
Copy link
Collaborator

Ah, understand now. I did a quick check in some older versions (1.9.5, 1.9.6, 1.9.7)and it looks like the include for unistd.h has not been inside a WIN32 guard check for several years. Not saying it shouldn't be, but as mentioned, I've never built this for Windows.

@dparrish
Copy link
Owner

dparrish commented Nov 19, 2020 via email

@BenjiHansell
Copy link
Author

@dparrish thanks for your explanation. So far, my attempts to patch the latest release for Windows haven't got me far. If I do succeed, I'll be sure to contribute it back. Thank you for your time.

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

3 participants