diff options
author | Magnus Hagander <magnus@hagander.net> | 2008-01-09 09:16:43 +0000 |
---|---|---|
committer | Magnus Hagander <magnus@hagander.net> | 2008-01-09 09:16:43 +0000 |
commit | 8d546c71709b5c396e54ce1a7fd49ff153a78862 (patch) | |
tree | bc8b6eb7a815263b819fa47894f2fa8db49c02d0 /src | |
parent | bbee1c5da81fc698c6196ae6d681e37edb3bb503 (diff) | |
download | postgresql-8d546c71709b5c396e54ce1a7fd49ff153a78862.tar.gz postgresql-8d546c71709b5c396e54ce1a7fd49ff153a78862.zip |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/include/port/win32.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/port/win32.h b/src/include/port/win32.h index 22a266d0458..54aafa25cc4 100644 --- a/src/include/port/win32.h +++ b/src/include/port/win32.h @@ -1,4 +1,4 @@ -/* $PostgreSQL: pgsql/src/include/port/win32.h,v 1.82 2007/12/11 14:34:43 mha Exp $ */ +/* $PostgreSQL: pgsql/src/include/port/win32.h,v 1.83 2008/01/09 09:16:43 mha Exp $ */ #if defined(_MSC_VER) || defined(__BORLANDC__) #define WIN32_ONLY_COMPILER @@ -50,7 +50,7 @@ * On Mingw/Msys, that should always be the case, but MSVC++ defaults * to 64 bits. We set that for our own build in the project files */ -#ifdef WIN32_ONLY_COMPILER +#if defined(WIN32_ONLY_COMPILER) && !defined(FRONTEND) #ifndef _USE_32BIT_TIME_T #error "Postgres uses 32 bit time_t - add #define _USE_32BIT_TIME_T on Windows" #endif |