We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 529a24a commit cd47d0fCopy full SHA for cd47d0f
src/pl/plpython/plpython.c
@@ -1,7 +1,7 @@
1
/**********************************************************************
2
* plpython.c - python as a procedural language for PostgreSQL
3
*
4
- * $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 $
5
6
*********************************************************************
7
*/
@@ -15,9 +15,14 @@
15
#include <Python.h>
16
#undef errcode
17
#define _DEBUG
18
+#elif defined (_MSC_VER)
19
+#define errcode __msvc_errcode
20
+#include <Python.h>
21
+#undef errcode
22
#else
23
24
#endif
25
+
26
#include "postgres.h"
27
28
/* system stuff */
0 commit comments