c-ringbuf icon indicating copy to clipboard operation
c-ringbuf copied to clipboard

Typedef ptrdiff_t to ssize_t under Visual Studio. Fixes #15

Open jamiebullock opened this issue 7 years ago • 1 comments

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:

  • [x] 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.

jamiebullock avatar Oct 05 '18 09:10 jamiebullock

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

dhess avatar Oct 09 '18 04:10 dhess