aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2006-08-10 01:35:28 +0000
committerBruce Momjian <bruce@momjian.us>2006-08-10 01:35:28 +0000
commit512d7eab82b07cc98d2d350cc6cc4b50e5cdaf4a (patch)
tree5b1ef54b1fc5d4cf79354cbc710d9b8d6b0bde1b
parenta42c545f62942ff22714af4a3b180f897472a4de (diff)
downloadpostgresql-512d7eab82b07cc98d2d350cc6cc4b50e5cdaf4a.tar.gz
postgresql-512d7eab82b07cc98d2d350cc6cc4b50e5cdaf4a.zip
Move "#define inline __inline" from port/win32.h to c.h because Win32
interface builds like libpq need it. Backpatch addition to 8.1.X.
-rw-r--r--src/include/c.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/include/c.h b/src/include/c.h
index 162f12aba35..abff75c199d 100644
--- a/src/include/c.h
+++ b/src/include/c.h
@@ -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.2 2006/05/21 20:05:50 tgl Exp $
+ * $PostgreSQL: pgsql/src/include/c.h,v 1.190.2.3 2006/08/10 01:35:28 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -740,6 +740,17 @@ 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