]> granicus.if.org Git - postgresql/commitdiff
Make ssize_t 64-bit on Win64, for compatibility with for example plpython.
authorMagnus Hagander <magnus@hagander.net>
Sat, 2 Jan 2010 22:47:37 +0000 (22:47 +0000)
committerMagnus Hagander <magnus@hagander.net>
Sat, 2 Jan 2010 22:47:37 +0000 (22:47 +0000)
src/include/port/win32.h

index 940933ce3c3ef1f52869101e9a110b16d0ee03c3..ae784c2dcb8841c4adeebfa31f49f592ae27dbb3 100644 (file)
@@ -1,4 +1,4 @@
-/* $PostgreSQL: pgsql/src/include/port/win32.h,v 1.90 2009/09/07 11:22:12 mha Exp $ */
+/* $PostgreSQL: pgsql/src/include/port/win32.h,v 1.91 2010/01/02 22:47:37 mha Exp $ */
 
 #if defined(_MSC_VER) || defined(__BORLANDC__)
 #define WIN32_ONLY_COMPILER
@@ -303,7 +303,11 @@ extern void pgwin32_unsetenv(const char *);
 
 /* Things that exist in MingW headers, but need to be added to MSVC & BCC */
 #ifdef WIN32_ONLY_COMPILER
+#ifndef _WIN64
 typedef long ssize_t;
+#else
+typedef __int64 ssize_t;
+#endif
 
 #ifndef __BORLANDC__
 typedef unsigned short mode_t;