Browse Source

possible fix for build break

David Rose 16 years ago
parent
commit
25a303055d
2 changed files with 3 additions and 2 deletions
  1. 2 2
      dtool/src/interrogatedb/py_panda.h
  2. 1 0
      dtool/src/parser-inc/Python.h

+ 2 - 2
dtool/src/interrogatedb/py_panda.h

@@ -40,7 +40,7 @@
 
 #endif
 
-#ifdef HAVE_PYTHON
+#if defined(HAVE_PYTHON) && !defined(CPPPARSER)
 
 #ifdef HAVE_LONG_LONG
 #undef HAVE_LONG_LONG
@@ -557,7 +557,7 @@ PyLongOrInt_FromUnsignedLong(unsigned long value);
 
 EXPCL_DTOOLCONFIG extern struct   Dtool_PyTypedObject Dtool_DTOOL_SUPPER_BASE;
 
-#endif  // HAVE_PYTHON
+#endif  // HAVE_PYTHON && !CPPPARSER
 
 
 #endif // PY_PANDA_H_ 

+ 1 - 0
dtool/src/parser-inc/Python.h

@@ -22,5 +22,6 @@
 
 class PyObject;
 class PyThreadState;
+typedef int Py_ssize_t;
 
 #endif  // PYTHON_H