Author: esr
Date: Fri Dec 5 14:19:16 2008
New Revision: 31283
URL: http://svn.gna.org/viewcvs/wesnoth?rev=31283&view=rev
Log:
Address bug #12638 (compilation crash). This is a theoretical fix based
on examining the 2.6 Python.h header. It will need testing.
Modified:
trunk/src/ai_python.cpp
Modified: trunk/src/ai_python.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/ai_python.cpp?rev=31283&r1=31282&r2=31283&view=diff
==============================================================================
--- trunk/src/ai_python.cpp (original)
+++ trunk/src/ai_python.cpp Fri Dec 5 14:19:16 2008
@@ -271,6 +271,10 @@
NULL,
NULL,
NULL
+#if PY_MAJOR_VERSION >= 2 && PY_MINOR_VERSION >= 6
+ 0,
+ NULL,
+#endif
};
static PyObject* wrap_unittype(const unit_type& type)
@@ -402,6 +406,10 @@
NULL,
NULL,
NULL
+#if PY_MAJOR_VERSION >= 2 && PY_MINOR_VERSION >= 6
+ 0,
+ NULL,
+#endif
};
static PyObject* wrap_attacktype(const attack_type& type)
@@ -718,6 +726,10 @@
NULL,
NULL,
NULL
+#if PY_MAJOR_VERSION >= 2 && PY_MINOR_VERSION >= 6
+ 0,
+ NULL,
+#endif
};
typedef struct {
@@ -828,6 +840,10 @@
NULL,
NULL,
NULL
+#if PY_MAJOR_VERSION >= 2 && PY_MINOR_VERSION >= 6
+ 0,
+ NULL,
+#endif
};
static PyObject *wrap_location(const map_location& loc)
@@ -1000,6 +1016,10 @@
NULL,
NULL,
NULL
+#if PY_MAJOR_VERSION >= 2 && PY_MINOR_VERSION >= 6
+ 0,
+ NULL,
+#endif
};
static PyObject* wrapper_team_name(wesnoth_team* team, void* /*closure*/)
@@ -1185,6 +1205,10 @@
NULL,
NULL,
NULL
+#if PY_MAJOR_VERSION >= 2 && PY_MINOR_VERSION >= 6
+ 0,
+ NULL,
+#endif
};
PyObject* python_ai::wrapper_unit_movement_cost( wesnoth_unit* unit, PyObject*
args )
@@ -1324,6 +1348,10 @@
NULL,
NULL,
NULL
+#if PY_MAJOR_VERSION >= 2 && PY_MINOR_VERSION >= 6
+ 0,
+ NULL,
+#endif
};
static PyObject* wrap_move_map(const ai_interface::move_map& wrap)
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits