Content-Length: 273048 | pFad | http://github.com/postgrespro/postgres/commit/c3705d8cc5bb7197295c1965c80ccf247716318d

00 Make ssize_t 64-bit on Win64, for compatibility with for example plpy… · postgrespro/postgres@c3705d8 · GitHub
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

Lines changed: 5 additions & 1 deletion
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/c3705d8cc5bb7197295c1965c80ccf247716318d

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy