File fix-consider-include-eval_h.patch of Package vegastrike

diff -ruNp a/engine/src/cmd/ai/pythonai.cpp b/engine/src/cmd/ai/pythonai.cpp
--- a/engine/src/cmd/ai/pythonai.cpp
+++ b/engine/src/cmd/ai/pythonai.cpp
@@ -29,7 +29,9 @@
 
 #include <Python.h>
 #include <compile.h>
+#if ((PY_VERSION_HEX) < 0x030B0000)
 #include <eval.h>
+#endif
 #include <stdio.h>
 
 #include "python/python_class.h"
diff -ruNp a/engine/src/python/init.cpp b/engine/src/python/init.cpp
--- a/engine/src/python/init.cpp
+++ b/engine/src/python/init.cpp
@@ -38,7 +38,9 @@
 #include <pyerrors.h>
 #include <pythonrun.h>
 #include <compile.h>
+#if ((PY_VERSION_HEX) < 0x030B0000)
 #include <eval.h>
+#endif
 #include <stdio.h>
 #include <math.h>
 
diff -ruNp a/engine/src/python/python_class.h b/engine/src/python/python_class.h
--- a/engine/src/python/python_class.h
+++ b/engine/src/python/python_class.h
@@ -49,7 +49,9 @@
 #include "init.h"
 #include "cmd/script/pythonmission.h"
 #include <compile.h>
+#if (PY_VERSION_HEX < 0x030B0000)
 #include <eval.h>
+#endif
 #include "python/python_compile.h"
 #include "cmd/ai/fire.h"
 #include <memory>
diff -ruNp a/engine/src/python/python_compile.cpp b/engine/src/python/python_compile.cpp
--- a/engine/src/python/python_compile.cpp
+++ b/engine/src/python/python_compile.cpp
@@ -27,7 +27,9 @@
 #include "cmd/unit_generic.h"
 #include "python_compile.h"
 #include <compile.h>
+#if ((PY_VERSION_HEX) < 0x030B0000)
 #include <eval.h>
+#endif
 #include "configxml.h"
 #include "vs_globals.h"
 #include "vsfilesystem.h"
openSUSE Build Service is sponsored by