Commit a53420e4 by Vicent Martí

msvc: Move `ssize_t` typedef to MSVC-only

This is a MSVC-only issue. All other compilers we support work properly.
parent 99a07f0f
......@@ -33,10 +33,6 @@
# define snprintf _snprintf
#ifndef _SSIZE_T_DEFINED
typedef SSIZE_T ssize_t;
#endif
#else
# include <unistd.h>
......
......@@ -33,6 +33,9 @@
# define strcasecmp _stricmp
# define strncasecmp _strnicmp
/* MSVC doesn't define ssize_t at all */
typedef SSIZE_T ssize_t;
#endif
#endif /* INCLUDE_msvc_compat__ */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment