Skip to content

Commit 878f32f

Browse files
committed
Move WIN32_ONLY_COMPILER define from c.h to win32.h because it was being
defined too late.
1 parent 6e6125d commit 878f32f

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src/include/c.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
1313
* Portions Copyright (c) 1994, Regents of the University of California
1414
*
15-
* $PostgreSQL: pgsql/src/include/c.h,v 1.211 2006/08/10 01:41:29 momjian Exp $
15+
* $PostgreSQL: pgsql/src/include/c.h,v 1.212 2006/10/03 03:59:22 momjian Exp $
1616
*
1717
*-------------------------------------------------------------------------
1818
*/
@@ -58,12 +58,9 @@
5858
#include "postgres_ext.h"
5959
#include "pg_trace.h"
6060

61-
#if defined(_MSC_VER) || defined(__BORLANDC__)
62-
#define WIN32_ONLY_COMPILER
6361
#if defined(__BORLANDC__) || (_MSC_VER > 1400)
6462
#include <crtdefs.h>
6563
#endif
66-
#endif
6764

6865
#include <stdio.h>
6966
#include <stdlib.h>

src/include/port/win32.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
/* $PostgreSQL: pgsql/src/include/port/win32.h,v 1.59 2006/09/16 13:35:49 tgl Exp $ */
1+
/* $PostgreSQL: pgsql/src/include/port/win32.h,v 1.60 2006/10/03 03:59:22 momjian Exp $ */
2+
3+
#if defined(_MSC_VER) || defined(__BORLANDC__)
4+
#define WIN32_ONLY_COMPILER
5+
#endif
26

37
/* undefine and redefine after #include */
48
#undef mkdir

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy