diff options
author | Thomas Grill <xovo@users.sourceforge.net> | 2008-01-04 11:59:00 +0000 |
---|---|---|
committer | Thomas Grill <xovo@users.sourceforge.net> | 2008-01-04 11:59:00 +0000 |
commit | b9bddf9e90aad64a237dbbb29342b6bd66a92bcc (patch) | |
tree | 6aef87b3c73b63df08f2e7545f799df99f611567 /externals/grill/py/source/pyprefix.h | |
parent | 447335814bd329b12ef2d9064e055f3cdfbf61dd (diff) |
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
Diffstat (limited to 'externals/grill/py/source/pyprefix.h')
-rw-r--r-- | externals/grill/py/source/pyprefix.h | 8 |
1 files changed, 6 insertions, 2 deletions
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 <flcontainers.h> #include <string> -#ifdef PY_USE_INOFFICIAL +#if FLEXT_SYS == FLEXT_SYS_PD && defined(PY_USE_INOFFICIAL) extern "C" { #include <s_stuff.h> } #endif +#if PY_VERSION_HEX < 0x02050000 +typedef int Py_ssize_t; +#endif + #endif |