git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 529a24a)
Fix plpython MSVC build in non-debug mode.
2007年1月28日 19:36:46 +0000 (19:36 +0000)
2007年1月28日 19:36:46 +0000 (19:36 +0000)

diff --git a/src/pl/plpython/plpython.c b/src/pl/plpython/plpython.c
index f8d02f425be0dfbe2dbbc5f0a6c8b951db5850fa..689a232b0e780071ae3d14129de836cadc4fe66b 100644 (file)
--- 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 */
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /