Fix plpython MSVC build in non-debug mode.

This commit is contained in:
Andrew Dunstan 2007-01-28 19:36:46 +00:00
parent 529a24a22b
commit cd47d0f781
1 changed files with 6 additions and 1 deletions

View File

@ -1,7 +1,7 @@
/********************************************************************** /**********************************************************************
* 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.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> #include <Python.h>
#undef errcode #undef errcode
#define _DEBUG #define _DEBUG
#elif defined (_MSC_VER)
#define errcode __msvc_errcode
#include <Python.h>
#undef errcode
#else #else
#include <Python.h> #include <Python.h>
#endif #endif
#include "postgres.h" #include "postgres.h"
/* system stuff */ /* system stuff */