Use #define instead of typedef in ssize_t check to avoid conflicts
This commit is contained in:
parent
ed2375e397
commit
6e0ee89374
@ -20,7 +20,8 @@
|
|||||||
/* If available, we do nothing. */
|
/* If available, we do nothing. */
|
||||||
#elif defined(_WIN32)
|
#elif defined(_WIN32)
|
||||||
# include <basetsd.h>
|
# include <basetsd.h>
|
||||||
typedef SSIZE_T ssize_t;
|
/* Use define instead of typedef to avoid conflicts. */
|
||||||
|
# define ssize_t SSIZE_T
|
||||||
#else
|
#else
|
||||||
/* Else define it to int (suggested fallback by libevent). */
|
/* Else define it to int (suggested fallback by libevent). */
|
||||||
# define ssize_t int
|
# define ssize_t int
|
||||||
|
Loading…
Reference in New Issue
Block a user