]> source.dussan.org Git - tigervnc.git/commitdiff
ssize_t must be signed even in windows 485/head
authorSayed Adel <seiko@imavr.com>
Tue, 11 Jul 2017 22:17:55 +0000 (00:17 +0200)
committerSayed Adel <seiko@imavr.com>
Tue, 11 Jul 2017 22:17:55 +0000 (00:17 +0200)
config.h.in

index 345af7df6bdf8f583d458a09ad2e1dc7c4e7e532..2d6db9c6c3ef1dcc9c3eefc1e9d1139e6e47871e 100644 (file)
@@ -11,6 +11,9 @@
 
 /* MS Visual Studio 2008 and newer doesn't know ssize_t */
 #if defined(HAVE_GNUTLS) && defined(WIN32) && !defined(__MINGW32__)
-#include <stddef.h>
-typedef size_t ssize_t;
+    #if defined(_WIN64)
+        typedef __int64 ssize_t;
+    #else
+        typedef long ssize_t;
+    #endif
 #endif