build on python 2.4

This commit is contained in:
David Rose 2009-07-01 17:00:53 +00:00
parent a64a4f09c5
commit 30b413df8b
2 changed files with 7 additions and 1 deletions

View File

@ -21,7 +21,6 @@
#include "pvector.h"
#include <Python.h>
#define TIXML_USE_STL
#include <tinyxml.h>
class P3DSession;

View File

@ -32,6 +32,13 @@
#include <Python.h>
#include <tinyxml.h>
// Python 2.5 adds Py_ssize_t; earlier versions don't have it.
#if PY_VERSION_HEX < 0x02050000 && !defined(PY_SSIZE_T_MIN)
typedef int Py_ssize_t;
#define PY_SSIZE_T_MAX INT_MAX
#define PY_SSIZE_T_MIN INT_MIN
#endif
using namespace std;
////////////////////////////////////////////////////////////////////