Changeset 3393 for trunk


Ignore:
Timestamp:
Jun 10, 2007, 9:21:42 PM (18 years ago)
Author:
bird
Message:

Added #ifdef OS2 with the missing PyMODINIT_FUNC.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/essentials/dev-lang/python/Modules/cjkcodecs/cjkcodecs.h

    r3225 r3393  
    387387#endif
    388388
     389#ifdef __OS2__
     390#define I_AM_A_MODULE_FOR(loc)                                          \
     391        PyMODINIT_FUNC                                                          \
     392        init_codecs_##loc(void)                                         \
     393        {                                                               \
     394                PyObject *m = Py_InitModule("_codecs_" #loc, __methods);\
     395                if (m != NULL)                                          \
     396                        (void)register_maps(m);                         \
     397        }
     398#else   
    389399#define I_AM_A_MODULE_FOR(loc)                                          \
    390400        void                                                            \
     
    395405                        (void)register_maps(m);                         \
    396406        }
    397 
    398 #endif
     407#endif
     408
     409#endif
Note: See TracChangeset for help on using the changeset viewer.