Fix ssize_t check for MXE (#82)

The MXE build environment (to cross-compile Windows binaries from Linux) uses the _SSIZE_T_DEFINED instead of the _SSIZE_T, and fails otherwise due to conflicting types.
This commit is contained in:
bvgastel 2018-10-13 20:48:09 +02:00 committed by Kuba Podgórski
parent 18197675d3
commit f8121a27c4

View File

@ -19,7 +19,7 @@
extern "C" {
#endif
#ifndef _SSIZE_T
#if !defined(_SSIZE_T_DEFINED) && !defined(_SSIZE_T)
#define _SSIZE_T
typedef long ssize_t; /* byte count or error */
#endif