Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit c3705d8

Browse files
committed
Make ssize_t 64-bit on Win64, for compatibility with for example plpython.
1 parent 96c40c6 commit c3705d8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/include/port/win32.h

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $PostgreSQL: pgsql/src/include/port/win32.h,v 1.90 2009/09/07 11:22:12 mha Exp $ */
1+
/* $PostgreSQL: pgsql/src/include/port/win32.h,v 1.91 2010/01/02 22:47:37 mha Exp $ */
22

33
#if defined(_MSC_VER) || defined(__BORLANDC__)
44
#define WIN32_ONLY_COMPILER
@@ -303,7 +303,11 @@ extern void pgwin32_unsetenv(const char *);
303303

304304
/* Things that exist in MingW headers, but need to be added to MSVC & BCC */
305305
#ifdef WIN32_ONLY_COMPILER
306+
#ifndef _WIN64
306307
typedef long ssize_t;
308+
#else
309+
typedef __int64 ssize_t;
310+
#endif
307311

308312
#ifndef __BORLANDC__
309313
typedef unsigned short mode_t;

0 commit comments

Comments
 (0)