Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitcd47d0f

Browse files
committed
Fix plpython MSVC build in non-debug mode.
1 parent529a24a commitcd47d0f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

‎src/pl/plpython/plpython.c

Lines changed: 6 additions & 1 deletion
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+
#defineerrcode __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)

[8]ページ先頭

©2009-2025 Movatter.jp