OSDN Git Service

Revert change of inclusion order for pg_config_os.h; this broke plperl
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 15 May 2003 23:39:27 +0000 (23:39 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 15 May 2003 23:39:27 +0000 (23:39 +0000)
on Linux and would have who knows what unpleasant effects on other platforms.
If you need another include file for Windows, then add it; don't go
messing with the semantics of every other port's include files.

src/include/c.h

index 4daa40d..f8df3a4 100644 (file)
@@ -12,7 +12,7 @@
  * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
  * Portions Copyright (c) 1994, Regents of the University of California
  *
- * $Id: c.h,v 1.145 2003/05/15 16:35:29 momjian Exp $
+ * $Id: c.h,v 1.146 2003/05/15 23:39:27 tgl Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -52,6 +52,7 @@
 
 #include "pg_config.h"
 #include "pg_config_manual.h"  /* must be after pg_config.h */
+#include "pg_config_os.h"              /* must be before any system header files */
 #include "postgres_ext.h"
 
 #include <stdio.h>
@@ -70,9 +71,6 @@
 #include <SupportDefs.h>
 #endif
 
-/* Must be here so we can redefine some functions on Win32 */
-#include "pg_config_os.h"
-
 /* Must be before gettext() games below */
 #include <locale.h>