]> granicus.if.org Git - postgresql/commitdiff
Fix plpython MSVC build in non-debug mode.
authorAndrew Dunstan <andrew@dunslane.net>
Sun, 28 Jan 2007 19:36:46 +0000 (19:36 +0000)
committerAndrew Dunstan <andrew@dunslane.net>
Sun, 28 Jan 2007 19:36:46 +0000 (19:36 +0000)
src/pl/plpython/plpython.c

index f8d02f425be0dfbe2dbbc5f0a6c8b951db5850fa..689a232b0e780071ae3d14129de836cadc4fe66b 100644 (file)
@@ -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 $
  *
  *********************************************************************
  */
 #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 */