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 authored and maxirmx committed Dec 8, 2023
1 parent 800dd77 commit 60ff581
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 60ff581

Please sign in to comment.