Use #define instead of typedef in ssize_t check to avoid conflicts

This commit is contained in:
Fred Helmesjö 2022-09-02 12:34:31 +02:00 committed by Boris Kolpackov
parent ed2375e397
commit 6e0ee89374

View File

@ -20,7 +20,8 @@
/* If available, we do nothing. */
#elif defined(_WIN32)
# include <basetsd.h>
typedef SSIZE_T ssize_t;
/* Use define instead of typedef to avoid conflicts. */
# define ssize_t SSIZE_T
#else
/* Else define it to int (suggested fallback by libevent). */
# define ssize_t int