diff options
author | Bruce Momjian <bruce@momjian.us> | 2006-10-03 03:59:22 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2006-10-03 03:59:22 +0000 |
commit | 878f32feab51f5d2968ea27d4ab84653fe397777 (patch) | |
tree | 01221254b277b3384470467aa23c9255a8e4a9c0 /src | |
parent | 6e6125dc692f71a3c718e9648674068de2ea88df (diff) | |
download | postgresql-878f32feab51f5d2968ea27d4ab84653fe397777.tar.gz postgresql-878f32feab51f5d2968ea27d4ab84653fe397777.zip |
Move WIN32_ONLY_COMPILER define from c.h to win32.h because it was being
defined too late.
Diffstat (limited to 'src')
-rw-r--r-- | src/include/c.h | 5 | ||||
-rw-r--r-- | 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 0feedf69ee3..5904c34e6fa 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 <crtdefs.h> #endif -#endif #include <stdio.h> #include <stdlib.h> diff --git a/src/include/port/win32.h b/src/include/port/win32.h index b3e4311b3a6..1216f3ac6e3 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 |