]> granicus.if.org Git - postgresql/commitdiff
Move Win32 inline define to win32.h so it is found, rather than c.h.
authorBruce Momjian <bruce@momjian.us>
Thu, 10 Aug 2006 01:45:17 +0000 (01:45 +0000)
committerBruce Momjian <bruce@momjian.us>
Thu, 10 Aug 2006 01:45:17 +0000 (01:45 +0000)
(cleaner)

src/include/c.h
src/include/port/win32.h

index abff75c199d7b4df853378fab39203650a6c57f4..38af69efd6d8f404e36e0d4b130d779a6849ebf9 100644 (file)
@@ -12,7 +12,7 @@
  * Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
  * Portions Copyright (c) 1994, Regents of the University of California
  *
- * $PostgreSQL: pgsql/src/include/c.h,v 1.190.2.3 2006/08/10 01:35:28 momjian Exp $
+ * $PostgreSQL: pgsql/src/include/c.h,v 1.190.2.4 2006/08/10 01:45:17 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -740,17 +740,6 @@ typedef NameData *Name;
 #define PG_BINARY_W "w"
 #endif
 
-#ifdef MSVC
-/*
- *     Certain "standard edition" versions of MSVC throw a warning
- *     that later generates an error for "inline" statements, but
- *     __inline seems to work.  e.g.  Microsoft Visual C++ .NET
- *     Version 7.1.3088
- */
-#define inline __inline
-#define __inline__ __inline
-#endif
-
 #if defined(sun) && defined(__sparc__) && !defined(__SVR4)
 #include <unistd.h>
 #endif
index 5bf6ce208fc1cd7f87b3a190fca882b2c25c00f2..93d6e2a74c3945c7f60ae6cd2b78631acd4b3da8 100644 (file)
@@ -1,4 +1,4 @@
-/* $PostgreSQL: pgsql/src/include/port/win32.h,v 1.49 2005/10/25 15:15:16 tgl Exp $ */
+/* $PostgreSQL: pgsql/src/include/port/win32.h,v 1.49.2.1 2006/08/10 01:45:17 momjian Exp $ */
 
 /* undefine and redefine after #include */
 #undef mkdir
@@ -181,6 +181,17 @@ typedef long key_t;
 typedef int pid_t;
 #endif
 
+#ifdef MSVC
+/*
+ *     Certain "standard edition" versions of MSVC throw a warning
+ *     that later generates an error for "inline" statements, but
+ *     __inline seems to work.  e.g.  Microsoft Visual C++ .NET
+ *     Version 7.1.3088
+ */
+#define inline __inline
+#define __inline__ __inline
+#endif
+
 /*
  * Supplement to <sys/stat.h>.
  */