Skip to content

Commit

Permalink
ssize_t type should be different for x86 and x64
Browse files Browse the repository at this point in the history
Signed-off-by: Benn Snyder <benn.snyder@gmail.com>
  • Loading branch information
armadillu authored and piedar committed Jul 29, 2016
1 parent 903d259 commit 3c3152b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion platform/windows/unistd.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@
// MSVC does not define this.
#ifndef _SSIZE_T_DEFINED
#define _SSIZE_T_DEFINED
typedef long ssize_t;
#ifdef _WIN64
typedef __int64 ssize_t;
#else
typedef int ssize_t;
#endif
#endif // _SSIZE_T_DEFINED


Expand Down

0 comments on commit 3c3152b

Please sign in to comment.