Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit cd47d0f

Browse files
committed
Fix plpython MSVC build in non-debug mode.
1 parent 529a24a commit cd47d0f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/pl/plpython/plpython.c

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**********************************************************************
22
* plpython.c - python as a procedural language for PostgreSQL
33
*
4-
* $PostgreSQL: pgsql/src/pl/plpython/plpython.c,v 1.92 2007/01/25 14:52:23 momjian Exp $
4+
* $PostgreSQL: pgsql/src/pl/plpython/plpython.c,v 1.93 2007/01/28 19:36:46 adunstan Exp $
55
*
66
*********************************************************************
77
*/
@@ -15,9 +15,14 @@
1515
#include <Python.h>
1616
#undef errcode
1717
#define _DEBUG
18+
#elif defined (_MSC_VER)
19+
#define errcode __msvc_errcode
20+
#include <Python.h>
21+
#undef errcode
1822
#else
1923
#include <Python.h>
2024
#endif
25+
2126
#include "postgres.h"
2227

2328
/* system stuff */

0 commit comments

Comments
 (0)