Merge pull request #1119 from stweil/ssize_t
Use local type declaration for POSIX standard type only for MS compiler
This commit is contained in:
commit
b54c06fb35
|
@ -30,7 +30,9 @@
|
|||
|
||||
#ifdef _WIN32
|
||||
#include <windows.h>
|
||||
#ifdef _MSC_VER
|
||||
typedef SSIZE_T ssize_t;
|
||||
#endif
|
||||
#else
|
||||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
|
|
Loading…
Reference in New Issue