mirror of
https://github.com/postgres/postgres.git
synced 2025-05-01 01:04:50 +03:00
Move WIN32_ONLY_COMPILER define from c.h to win32.h because it was being
defined too late.
This commit is contained in:
parent
6e6125dc69
commit
878f32feab
@ -12,7 +12,7 @@
|
|||||||
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
|
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
|
||||||
* Portions Copyright (c) 1994, Regents of the University of California
|
* 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 "postgres_ext.h"
|
||||||
#include "pg_trace.h"
|
#include "pg_trace.h"
|
||||||
|
|
||||||
#if defined(_MSC_VER) || defined(__BORLANDC__)
|
|
||||||
#define WIN32_ONLY_COMPILER
|
|
||||||
#if defined(__BORLANDC__) || (_MSC_VER > 1400)
|
#if defined(__BORLANDC__) || (_MSC_VER > 1400)
|
||||||
#include <crtdefs.h>
|
#include <crtdefs.h>
|
||||||
#endif
|
#endif
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.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 */
|
/* undefine and redefine after #include */
|
||||||
#undef mkdir
|
#undef mkdir
|
||||||
|
Loading…
x
Reference in New Issue
Block a user