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:
Even Rouault 2018-09-22 22:59:17 +02:00 committed by GitHub
commit b54c06fb35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -30,7 +30,9 @@
#ifdef _WIN32 #ifdef _WIN32
#include <windows.h> #include <windows.h>
#ifdef _MSC_VER
typedef SSIZE_T ssize_t; typedef SSIZE_T ssize_t;
#endif
#else #else
#include <sys/types.h> #include <sys/types.h>
#include <sys/socket.h> #include <sys/socket.h>