From 25a303055d66b83d26f506fe4cf22b74b51d3680 Mon Sep 17 00:00:00 2001 From: David Rose Date: Sun, 14 Feb 2010 18:05:11 +0000 Subject: [PATCH] possible fix for build break --- dtool/src/interrogatedb/py_panda.h | 4 ++-- dtool/src/parser-inc/Python.h | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/dtool/src/interrogatedb/py_panda.h b/dtool/src/interrogatedb/py_panda.h index e571b29d8e..8d65517d0b 100755 --- a/dtool/src/interrogatedb/py_panda.h +++ b/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_ diff --git a/dtool/src/parser-inc/Python.h b/dtool/src/parser-inc/Python.h index 3d71f0f11c..ee4afdab0a 100755 --- a/dtool/src/parser-inc/Python.h +++ b/dtool/src/parser-inc/Python.h @@ -22,5 +22,6 @@ class PyObject; class PyThreadState; +typedef int Py_ssize_t; #endif // PYTHON_H