~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/_static_tuple_c.c

(jam) Some python2.4 fixes for the StaticTuple code.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 */
21
21
#define STATIC_TUPLE_MODULE
22
22
 
 
23
#include <Python.h>
 
24
#include "python-compat.h"
 
25
 
23
26
#include "_static_tuple_c.h"
24
27
#include "_export_c_api.h"
25
28
 
31
34
#define import__simple_set_pyx import_bzrlib___simple_set_pyx
32
35
#include "_simple_set_pyx_api.h"
33
36
 
34
 
#include "python-compat.h"
35
 
 
36
37
#if defined(__GNUC__)
37
38
#   define inline __inline__
38
39
#elif defined(_MSC_VER)
689
690
 
690
691
 
691
692
static int
692
 
_workaround_pyrex_096()
 
693
_workaround_pyrex_096(void)
693
694
{
694
695
    /* Work around an incompatibility in how pyrex 0.9.6 exports a module,
695
696
     * versus how pyrex 0.9.8 and cython 0.11 export it.