Skip to content

Commit 3c3152b

Browse files
armadillupiedar
authored andcommitted
ssize_t type should be different for x86 and x64
Signed-off-by: Benn Snyder <[email protected]>
1 parent 903d259 commit 3c3152b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

platform/windows/unistd.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,11 @@
3434
// MSVC does not define this.
3535
#ifndef _SSIZE_T_DEFINED
3636
#define _SSIZE_T_DEFINED
37-
typedef long ssize_t;
37+
#ifdef _WIN64
38+
typedef __int64 ssize_t;
39+
#else
40+
typedef int ssize_t;
41+
#endif
3842
#endif // _SSIZE_T_DEFINED
3943

4044

0 commit comments

Comments
 (0)