Skip to content

Commit

Permalink
Merge pull request #1183 from slyshykO/msvc-ssize_max
Browse files Browse the repository at this point in the history
Define 'SSIZE_MAX' if not defined
  • Loading branch information
Nightwalker-87 authored Sep 8, 2021
2 parents 0489af7 + 7c582b7 commit 32a80be
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/win32/unistd/unistd.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@
*/

#define ssize_t int
#ifndef SSIZE_MAX
#define SSIZE_MAX ((sizeof(ssize_t) == 4) ? 2147483647 : 9223372036854775807)
#endif

#define STDIN_FILENO 0
#define STDOUT_FILENO 1
Expand Down

0 comments on commit 32a80be

Please sign in to comment.