Commit 801cbe33 authored by Tom Lane's avatar Tom Lane

Define errcode as __msvc_errcode not __vc_errcode for MSVC builds,

per Magnus.
parent ac733df6
/* $PostgreSQL: pgsql/src/include/port/win32.h,v 1.58 2006/08/10 01:41:29 momjian Exp $ */ /* $PostgreSQL: pgsql/src/include/port/win32.h,v 1.59 2006/09/16 13:35:49 tgl Exp $ */
/* undefine and redefine after #include */ /* undefine and redefine after #include */
#undef mkdir #undef mkdir
...@@ -269,7 +269,7 @@ typedef unsigned short mode_t; ...@@ -269,7 +269,7 @@ typedef unsigned short mode_t;
#define __inline__ __inline #define __inline__ __inline
#undef errcode #undef errcode
#define errcode __vc_errcode #define errcode __msvc_errcode
#define _S_IRWXU (_S_IREAD | _S_IWRITE | _S_IEXEC) #define _S_IRWXU (_S_IREAD | _S_IWRITE | _S_IEXEC)
#define _S_IXUSR _S_IEXEC #define _S_IXUSR _S_IEXEC
......
/********************************************************************** /**********************************************************************
* plpython.c - python as a procedural language for PostgreSQL * plpython.c - python as a procedural language for PostgreSQL
* *
* $PostgreSQL: pgsql/src/pl/plpython/plpython.c,v 1.87 2006/09/02 12:30:01 momjian Exp $ * $PostgreSQL: pgsql/src/pl/plpython/plpython.c,v 1.88 2006/09/16 13:35:49 tgl Exp $
* *
********************************************************************* *********************************************************************
*/ */
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
* _DEBUG is defined */ * _DEBUG is defined */
#undef _DEBUG #undef _DEBUG
/* Also hide away errcode, since we load Python.h before postgres.h */ /* Also hide away errcode, since we load Python.h before postgres.h */
#define errcode __vc_errcode #define errcode __msvc_errcode
#include <Python.h> #include <Python.h>
#undef errcode #undef errcode
#define _DEBUG #define _DEBUG
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment