2020-05-19 01:36:03 +08:00
|
|
|
diff --git a/src/pl/plpython/plpython.h b/src/pl/plpython/plpython.h
|
|
|
|
index 3a1f0d56d..6a8a09a20 100644
|
|
|
|
--- a/src/pl/plpython/plpython.h
|
|
|
|
+++ b/src/pl/plpython/plpython.h
|
2022-03-24 07:41:00 +08:00
|
|
|
@@ -45,12 +45,10 @@
|
2020-05-19 01:36:03 +08:00
|
|
|
#if defined(_MSC_VER) && defined(_DEBUG)
|
|
|
|
/* Python uses #pragma to bring in a non-default libpython on VC++ if
|
|
|
|
* _DEBUG is defined */
|
|
|
|
-#undef _DEBUG
|
|
|
|
/* Also hide away errcode, since we load Python.h before postgres.h */
|
|
|
|
#define errcode __msvc_errcode
|
|
|
|
#include <Python.h>
|
|
|
|
#undef errcode
|
|
|
|
-#define _DEBUG
|
|
|
|
#elif defined (_MSC_VER)
|
|
|
|
#define errcode __msvc_errcode
|
|
|
|
#include <Python.h>
|