Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
include: move ssize_t workaround to uv-win.h
Browse files Browse the repository at this point in the history
  • Loading branch information
bnoordhuis committed Jul 30, 2012
1 parent be10324 commit 4eccb2e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 6 additions & 0 deletions include/uv-private/uv-win.h
Expand Up @@ -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>
Expand Down
6 changes: 0 additions & 6 deletions include/uv.h
Expand Up @@ -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
Expand Down

0 comments on commit 4eccb2e

Please sign in to comment.