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

Typedef ptrdiff_t to ssize_t under Visual Studio. Fixes #15 #16

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jamiebullock
Copy link

ssize_t is a POSIX extension and therefore not available under Visual Studio.

This change defines ptrdiff_t as ssize_t, which is a compatible typedef since ptrdiff_t should always be at least as big as ssize_t

By submitting this PR, you agree to the following:

  • This contribution is dedicated to the public domain per the COPYING file included in this distribution. I am waiving any copyright claims with respect to this contribution, and I assert that this contribution is my own creation, and not taken from another work.

ssize_t is a POSIX extension and therefore not available under Visual Studio.

This change defines ptrdiff_t as ssize_t, which is a compatible typedef since ptrdiff_t should always be at least as big as ssize_t
@dhess
Copy link
Owner

dhess commented Oct 9, 2018

Thanks. I'll get to these PRs you've made in the next few days.

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