[nginx] Win32: minimized redefinition of ssize_t.

Maxim Dounin mdounin at mdounin.ru
Sat Dec 24 16:25:48 UTC 2016


details:   http://hg.nginx.org/nginx/rev/38df52d4e250
branches:  
changeset: 6859:38df52d4e250
user:      Maxim Dounin <mdounin at mdounin.ru>
date:      Sat Dec 24 18:01:14 2016 +0300
description:
Win32: minimized redefinition of ssize_t.

All variants of GCC have ssize_t available, there is no need to
redefine it.

diffstat:

 src/os/win32/ngx_win32_config.h |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff --git a/src/os/win32/ngx_win32_config.h b/src/os/win32/ngx_win32_config.h
--- a/src/os/win32/ngx_win32_config.h
+++ b/src/os/win32/ngx_win32_config.h
@@ -185,7 +185,7 @@ typedef unsigned int        ino_t;
 #endif
 
 
-#ifndef __MINGW64_VERSION_MAJOR
+#ifndef __GNUC__
 typedef int                 ssize_t;
 #endif
 


More information about the nginx-devel mailing list