File tree Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change 12
12
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
13
13
* Portions Copyright (c) 1994, Regents of the University of California
14
14
*
15
- * $PostgreSQL: pgsql/src/include/c.h,v 1.209 2006/08/08 18:49:14 momjian Exp $
15
+ * $PostgreSQL: pgsql/src/include/c.h,v 1.210 2006/08/10 01:35:21 momjian Exp $
16
16
*
17
17
*-------------------------------------------------------------------------
18
18
*/
@@ -744,6 +744,17 @@ typedef NameData *Name;
744
744
#define PG_BINARY_W "w"
745
745
#endif
746
746
747
+ #ifdef MSVC
748
+ /*
749
+ * Certain "standard edition" versions of MSVC throw a warning
750
+ * that later generates an error for "inline" statements, but
751
+ * __inline seems to work. e.g. Microsoft Visual C++ .NET
752
+ * Version 7.1.3088
753
+ */
754
+ #define inline __inline
755
+ #define __inline__ __inline
756
+ #endif
757
+
747
758
#if defined(sun ) && defined(__sparc__ ) && !defined(__SVR4 )
748
759
#include <unistd.h>
749
760
#endif
Original file line number Diff line number Diff line change 1
- /* $PostgreSQL: pgsql/src/include/port/win32.h,v 1.56 2006/08/09 17:33:52 momjian Exp $ */
1
+ /* $PostgreSQL: pgsql/src/include/port/win32.h,v 1.57 2006/08/10 01:35:21 momjian Exp $ */
2
2
3
3
/* undefine and redefine after #include */
4
4
#undef mkdir
@@ -259,9 +259,6 @@ extern void _dosmaperr(unsigned long);
259
259
typedef long ssize_t ;
260
260
typedef unsigned short mode_t ;
261
261
262
- #define inline __inline
263
- #define __inline__ __inline
264
-
265
262
#undef errcode
266
263
#define errcode __vc_errcode
267
264
You can’t perform that action at this time.
0 commit comments