dhess / c-ringbuf

A ring buffer implemented in C
Other
418 stars 143 forks source link

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

Open jamiebullock opened 5 years ago

jamiebullock commented 5 years ago

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:

dhess commented 5 years ago

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