|
1 | 1 | /**********************************************************************
|
2 | 2 | * plpython.c - python as a procedural language for PostgreSQL
|
3 | 3 | *
|
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 $ |
5 | 5 | *
|
6 | 6 | *********************************************************************
|
7 | 7 | */
|
|
15 | 15 | #include<Python.h>
|
16 | 16 | #undef errcode
|
17 | 17 | #define_DEBUG
|
| 18 | +#elif defined (_MSC_VER) |
| 19 | +#defineerrcode __msvc_errcode |
| 20 | +#include<Python.h> |
| 21 | +#undef errcode |
18 | 22 | #else
|
19 | 23 | #include<Python.h>
|
20 | 24 | #endif
|
| 25 | + |
21 | 26 | #include"postgres.h"
|
22 | 27 |
|
23 | 28 | /* system stuff */
|
|