Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 801cbe3

Browse files
committed
Define errcode as __msvc_errcode not __vc_errcode for MSVC builds,
per Magnus.
1 parent ac733df commit 801cbe3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/include/port/win32.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $PostgreSQL: pgsql/src/include/port/win32.h,v 1.58 2006/08/10 01:41:29 momjian Exp $ */
1+
/* $PostgreSQL: pgsql/src/include/port/win32.h,v 1.59 2006/09/16 13:35:49 tgl Exp $ */
22

33
/* undefine and redefine after #include */
44
#undef mkdir
@@ -269,7 +269,7 @@ typedef unsigned short mode_t;
269269
#define __inline__ __inline
270270

271271
#undef errcode
272-
#define errcode __vc_errcode
272+
#define errcode __msvc_errcode
273273

274274
#define _S_IRWXU (_S_IREAD | _S_IWRITE | _S_IEXEC)
275275
#define _S_IXUSR _S_IEXEC

src/pl/plpython/plpython.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**********************************************************************
22
* plpython.c - python as a procedural language for PostgreSQL
33
*
4-
* $PostgreSQL: pgsql/src/pl/plpython/plpython.c,v 1.87 2006/09/02 12:30:01 momjian Exp $
4+
* $PostgreSQL: pgsql/src/pl/plpython/plpython.c,v 1.88 2006/09/16 13:35:49 tgl Exp $
55
*
66
*********************************************************************
77
*/
@@ -11,7 +11,7 @@
1111
* _DEBUG is defined */
1212
#undef _DEBUG
1313
/* Also hide away errcode, since we load Python.h before postgres.h */
14-
#define errcode __vc_errcode
14+
#define errcode __msvc_errcode
1515
#include <Python.h>
1616
#undef errcode
1717
#define _DEBUG

0 commit comments

Comments
 (0)