Changeset 1039


Ignore:
Timestamp:
Jun 10, 2008 7:55:46 AM (16 years ago)
Author:
dkearney
Message:

updated python bindings library module to compile with python2.4 as advised by PEP353

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lang/python/Rappture/PyRpLibrary.cc

    r1034 r1039  
    22 * ======================================================================
    33 *  AUTHOR:  Derrick S. Kearney, Purdue University
    4  *  Copyright (c) 2004-2007  Purdue Research Foundation
     4 *  Copyright (c) 2004-2008  Purdue Research Foundation
    55 *
    66 *  See the file "license.terms" for information on usage and
     
    1313#ifndef Py_RETURN_NONE
    1414#define Py_RETURN_NONE return Py_INCREF(Py_None), Py_None
     15#endif
     16
     17/*
     18 * As suggested by PEP353
     19 * http://www.python.org/dev/peps/pep-0353/
     20 */
     21
     22#if PY_VERSION_HEX < 0x02050000 && !defined(PY_SSIZE_T_MIN)
    1523typedef int Py_ssize_t;
     24#define PY_SSIZE_T_MAX INT_MAX
     25#define PY_SSIZE_T_MIN INT_MIN
    1626#endif
    1727
Note: See TracChangeset for help on using the changeset viewer.