building without python works again for the BGE

This commit is contained in:
Campbell Barton
2010-10-10 20:59:30 +00:00
parent f49fc58df6
commit a20843bf34
3 changed files with 14 additions and 7 deletions

View File

@@ -461,6 +461,7 @@ typedef PyTypeObject * PyParentObject; // Define the PyParent Object
#else // DISABLE_PYTHON
#ifdef WITH_CXX_GUARDEDALLOC
#define Py_Header \
public: \
void *operator new(size_t num_bytes) { return MEM_mallocN(num_bytes, "GE:PyObjectPlus"); } \
@@ -471,6 +472,16 @@ typedef PyTypeObject * PyParentObject; // Define the PyParent Object
void *operator new(size_t num_bytes) { return MEM_mallocN(num_bytes, "GE:PyObjectPlusPtr"); } \
void operator delete( void *mem ) { MEM_freeN(mem); } \
#else // WITH_CXX_GUARDEDALLOC
#define Py_Header \
public: \
#define Py_HeaderPtr \
public: \
#endif // WITH_CXX_GUARDEDALLOC
#endif