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

Make wslay compilable with MSVC #53

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

rpoisel
Copy link

@rpoisel rpoisel commented Jun 12, 2019

These are the changes that were required to get the wslay library compilable with MSVC.


#ifdef _MSC_VER
#ifdef _WIN64
typedef int64_t ssize_t;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems you can alternatively use:

#if defined(_MSC_VER)
#include <BaseTsd.h>
typedef SSIZE_T ssize_t;
#endif

instead of using int64_t or int32_t based on the architecture.
That also seem to remove the requirements for the other casts in this PR.

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