Skip to content

Commit

Permalink
Use typedef for Windows ssize_t. Fixes #2144.
Browse files Browse the repository at this point in the history
  • Loading branch information
jfx2006 committed Dec 7, 2023
1 parent d934fa9 commit 6c84cbc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common/uniwin.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@
#include <direct.h> /* for _getcwd() and _chdir() */

#ifdef _WIN64
#define ssize_t __int64
typedef __int64 ssize_t;
#else
#define ssize_t long
typedef long ssize_t;
#endif

#define STDIN_FILENO 0
Expand Down

0 comments on commit 6c84cbc

Please sign in to comment.