From b9bddf9e90aad64a237dbbb29342b6bd66a92bcc Mon Sep 17 00:00:00 2001 From: Thomas Grill Date: Fri, 4 Jan 2008 11:59:00 +0000 Subject: compilation fixes for Python 2.5, OSX cross-platform fixes more cross-platform and version fixes compilation fixes for Python 2.5 svn path=/trunk/; revision=9122 --- externals/grill/py/source/pyprefix.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'externals/grill/py/source/pyprefix.h') diff --git a/externals/grill/py/source/pyprefix.h b/externals/grill/py/source/pyprefix.h index 50deefb9..0614b3e0 100644 --- a/externals/grill/py/source/pyprefix.h +++ b/externals/grill/py/source/pyprefix.h @@ -6,7 +6,7 @@ For information on usage and redistribution, and for a DISCLAIMER OF ALL WARRANTIES, see the file, "license.txt," in this distribution. $LastChangedRevision: 26 $ -$LastChangedDate: 2008-01-03 17:20:03 +0100 (Thu, 03 Jan 2008) $ +$LastChangedDate: 2008-01-04 12:58:11 +0100 (Fri, 04 Jan 2008) $ $LastChangedBy: thomas $ */ @@ -41,10 +41,14 @@ $LastChangedBy: thomas $ #include #include -#ifdef PY_USE_INOFFICIAL +#if FLEXT_SYS == FLEXT_SYS_PD && defined(PY_USE_INOFFICIAL) extern "C" { #include } #endif +#if PY_VERSION_HEX < 0x02050000 +typedef int Py_ssize_t; +#endif + #endif -- cgit v1.2.1