From: Stefan Weil Date: Mon, 18 Jun 2018 12:06:25 +0000 (+0200) Subject: Use local type declaration for POSIX standard type only for MS compiler X-Git-Tag: v2.3.1~23^2 X-Git-Url: https://main.carlh.net/gitweb/?p=openjpeg.git;a=commitdiff_plain;h=4aaf52ec8d8ec7b94c73f77f9c0029a3d3cabbf9 Use local type declaration for POSIX standard type only for MS compiler ssize_t is a POSIX type which is declared in POSIX include files. Mingw-w64 provides it also for Windows. Use the local declaration only with MS compilers. Signed-off-by: Stefan Weil --- diff --git a/src/lib/openjpip/sock_manager.c b/src/lib/openjpip/sock_manager.c index ec2455e8..a776cedb 100644 --- a/src/lib/openjpip/sock_manager.c +++ b/src/lib/openjpip/sock_manager.c @@ -30,7 +30,9 @@ #ifdef _WIN32 #include +#ifdef _MSC_VER typedef SSIZE_T ssize_t; +#endif #else #include #include