include: move ssize_t workaround to uv-win.h

This commit is contained in:
Ben Noordhuis 2012-07-30 14:26:50 +02:00 committed by Bert Belder
parent 514265ec6e
commit 4168855da5
2 changed files with 6 additions and 6 deletions

View File

@ -23,6 +23,12 @@
# define _WIN32_WINNT 0x0502
#endif
#if !defined(_SSIZE_T_) && !defined(_SSIZE_T_DEFINED)
typedef intptr_t ssize_t;
# define _SSIZE_T_
# define _SSIZE_T_DEFINED
#endif
#include <process.h>
#include <stdint.h>
#include <winsock2.h>

View File

@ -57,12 +57,6 @@ extern "C" {
#include "ares.h"
#if !defined(_SSIZE_T_) && !defined(_SSIZE_T_DEFINED)
typedef intptr_t ssize_t;
# define _SSIZE_T_
# define _SSIZE_T_DEFINED
#endif
#if defined(__unix__) || defined(__POSIX__) || defined(__APPLE__)
# include "uv-private/uv-unix.h"
#else