Changeset 62


Ignore:
Timestamp:
May 26, 2009, 1:28:23 PM (11 years ago)
Author:
winterstream
Message:

Add an #ifdef to make the closure module compilable under Python 2.6.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/closure.c

    r38 r62  
    1010#include "closure.h"
    1111
     12/* WRITE_RESTRICTED was renamed to PY_WRITE_RESTRICTED in Python 2.6.
     13 * To make this code compatible with Python 2.6, we alias
     14 * PY_WRITE_RESTRICTED to WRITE_RESTRICTED. */
     15#ifndef WRITE_RESTRICTED
     16#define WRITE_RESTRICTED PY_WRITE_RESTRICTED
     17#endif
    1218
    1319/* Free list for method objects to safe malloc/free overhead
Note: See TracChangeset for help on using the changeset viewer.