diff options
author | Andrew Dunstan <andrew@dunslane.net> | 2007-01-28 19:36:46 +0000 |
---|---|---|
committer | Andrew Dunstan <andrew@dunslane.net> | 2007-01-28 19:36:46 +0000 |
commit | cd47d0f78141cb9898a640d0e598f59264c8911e (patch) | |
tree | d66b2ecc202d40e8fd69053f51042dfa7954a55d /src/pl/plpython/plpython.c | |
parent | 529a24a22b0a2e44b6510f7bfcc020b9e43727ee (diff) | |
download | postgresql-cd47d0f78141cb9898a640d0e598f59264c8911e.tar.gz postgresql-cd47d0f78141cb9898a640d0e598f59264c8911e.zip |
Fix plpython MSVC build in non-debug mode.
Diffstat (limited to 'src/pl/plpython/plpython.c')
-rw-r--r-- | src/pl/plpython/plpython.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/pl/plpython/plpython.c b/src/pl/plpython/plpython.c index f8d02f425be..689a232b0e7 100644 --- a/src/pl/plpython/plpython.c +++ b/src/pl/plpython/plpython.c @@ -1,7 +1,7 @@ /********************************************************************** * plpython.c - python as a procedural language for PostgreSQL * - * $PostgreSQL: pgsql/src/pl/plpython/plpython.c,v 1.92 2007/01/25 14:52:23 momjian Exp $ + * $PostgreSQL: pgsql/src/pl/plpython/plpython.c,v 1.93 2007/01/28 19:36:46 adunstan Exp $ * ********************************************************************* */ @@ -15,9 +15,14 @@ #include <Python.h> #undef errcode #define _DEBUG +#elif defined (_MSC_VER) +#define errcode __msvc_errcode +#include <Python.h> +#undef errcode #else #include <Python.h> #endif + #include "postgres.h" /* system stuff */ |