Changeset: 2aa45aa508ab for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=2aa45aa508ab
Modified Files:
        monetdb5/extras/pyapi/pyapi.h
Branch: pythonudf
Log Message:

Don't use debug version of Python headers when MonetDB is compiled in debug 
mode.

We always link against the optimized Python library; using the debug version 
causes inconsistent dll linkage.


diffs (19 lines):

diff --git a/monetdb5/extras/pyapi/pyapi.h b/monetdb5/extras/pyapi/pyapi.h
--- a/monetdb5/extras/pyapi/pyapi.h
+++ b/monetdb5/extras/pyapi/pyapi.h
@@ -31,7 +31,14 @@
 #undef _GNU_SOURCE
 #undef _XOPEN_SOURCE
 #undef _POSIX_C_SOURCE
-#include <Python.h>
+#ifdef _DEBUG
+ #undef _DEBUG
+ #include <Python.h>
+ #define _DEBUG
+#else
+ #include <Python.h>
+#endif
+
 
 // Numpy Library
 #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to