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

Commit

Permalink
uv.h: make the ssize_t fallback more portable
Browse files Browse the repository at this point in the history
  • Loading branch information
piscisaureus committed Apr 24, 2012
1 parent 84d2f82 commit 5342bac
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions include/uv.h
Expand Up @@ -57,8 +57,10 @@ extern "C" {

#include "ares.h"

#ifndef _SSIZE_T_
typedef intptr_t ssize_t;
#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__)
Expand Down

0 comments on commit 5342bac

Please sign in to comment.