Skip to content

Commit 8d546c7

Browse files
committed
Don't enforce 32-bit time_t for FRONTEND apps. Fixes standalone
builds of libpq in both 32 and 64-bit. Per gripe from Hiroshi Saito.
1 parent bbee1c5 commit 8d546c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/include/port/win32.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $PostgreSQL: pgsql/src/include/port/win32.h,v 1.82 2007/12/11 14:34:43 mha Exp $ */
1+
/* $PostgreSQL: pgsql/src/include/port/win32.h,v 1.83 2008/01/09 09:16:43 mha Exp $ */
22

33
#if defined(_MSC_VER) || defined(__BORLANDC__)
44
#define WIN32_ONLY_COMPILER
@@ -50,7 +50,7 @@
5050
* On Mingw/Msys, that should always be the case, but MSVC++ defaults
5151
* to 64 bits. We set that for our own build in the project files
5252
*/
53-
#ifdef WIN32_ONLY_COMPILER
53+
#if defined(WIN32_ONLY_COMPILER) && !defined(FRONTEND)
5454
#ifndef _USE_32BIT_TIME_T
5555
#error "Postgres uses 32 bit time_t - add #define _USE_32BIT_TIME_T on Windows"
5656
#endif

0 commit comments

Comments
 (0)