From 878f32feab51f5d2968ea27d4ab84653fe397777 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Tue, 3 Oct 2006 03:59:22 +0000 Subject: [PATCH] Move WIN32_ONLY_COMPILER define from c.h to win32.h because it was being defined too late. --- src/include/c.h | 5 +---- src/include/port/win32.h | 6 +++++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/include/c.h b/src/include/c.h index 0feedf69ee..5904c34e6f 100644 --- a/src/include/c.h +++ b/src/include/c.h @@ -12,7 +12,7 @@ * Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/c.h,v 1.211 2006/08/10 01:41:29 momjian Exp $ + * $PostgreSQL: pgsql/src/include/c.h,v 1.212 2006/10/03 03:59:22 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -58,12 +58,9 @@ #include "postgres_ext.h" #include "pg_trace.h" -#if defined(_MSC_VER) || defined(__BORLANDC__) -#define WIN32_ONLY_COMPILER #if defined(__BORLANDC__) || (_MSC_VER > 1400) #include #endif -#endif #include #include diff --git a/src/include/port/win32.h b/src/include/port/win32.h index b3e4311b3a..1216f3ac6e 100644 --- a/src/include/port/win32.h +++ b/src/include/port/win32.h @@ -1,4 +1,8 @@ -/* $PostgreSQL: pgsql/src/include/port/win32.h,v 1.59 2006/09/16 13:35:49 tgl Exp $ */ +/* $PostgreSQL: pgsql/src/include/port/win32.h,v 1.60 2006/10/03 03:59:22 momjian Exp $ */ + +#if defined(_MSC_VER) || defined(__BORLANDC__) +#define WIN32_ONLY_COMPILER +#endif /* undefine and redefine after #include */ #undef mkdir -- 2.40.0