Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e860e74

Browse files
committed
Return inline to win32.h because code was OK, but keep additional
comment. 8.1.X is not affected by this commit.
1 parent 3929b6e commit e860e74

File tree

2 files changed

+11
-13
lines changed

2 files changed

+11
-13
lines changed

src/include/c.h

Lines changed: 1 addition & 12 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.210 2006/08/10 01:35:21 momjian Exp $
15+
* $PostgreSQL: pgsql/src/include/c.h,v 1.211 2006/08/10 01:41:29 momjian Exp $
1616
*
1717
*-------------------------------------------------------------------------
1818
*/
@@ -744,17 +744,6 @@ typedef NameData *Name;
744744
#define PG_BINARY_W "w"
745745
#endif
746746

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-
758747
#if defined(sun) && defined(__sparc__) && !defined(__SVR4)
759748
#include <unistd.h>
760749
#endif

src/include/port/win32.h

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $PostgreSQL: pgsql/src/include/port/win32.h,v 1.57 2006/08/10 01:35:21 momjian Exp $ */
1+
/* $PostgreSQL: pgsql/src/include/port/win32.h,v 1.58 2006/08/10 01:41:29 momjian Exp $ */
22

33
/* undefine and redefine after #include */
44
#undef mkdir
@@ -259,6 +259,15 @@ extern void _dosmaperr(unsigned long);
259259
typedef long ssize_t;
260260
typedef unsigned short mode_t;
261261

262+
/*
263+
* Certain "standard edition" versions of MSVC throw a warning
264+
* that later generates an error for "inline" statements, but
265+
* __inline seems to work. e.g. Microsoft Visual C++ .NET
266+
* Version 7.1.3088
267+
*/
268+
#define inline __inline
269+
#define __inline__ __inline
270+
262271
#undef errcode
263272
#define errcode __vc_errcode
264273

0 commit comments

Comments
 (0)