16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-20 18:19:20 +02:00

WITH_PYTHON build option

This commit is contained in:
milek7
2022-07-07 02:17:00 +02:00
parent 11f58cc5a5
commit ba5dfda64d
4 changed files with 64 additions and 4 deletions

View File

@@ -27,6 +27,7 @@ http://mozilla.org/MPL/2.0/.
#pragma GCC diagnostic ignored "-Wregister"
#endif
#ifdef WITH_PYTHON
#ifdef _DEBUG
#undef _DEBUG // bez tego macra Py_DECREF powoduja problemy przy linkowaniu
#include "Python.h"
@@ -34,6 +35,10 @@ http://mozilla.org/MPL/2.0/.
#else
#include "Python.h"
#endif
#else
#define PyObject void
#define PyThreadState void
#endif
#ifdef __GNUC__
#pragma GCC diagnostic pop