Ticket #20820: python25-apple-headers.diff

File python25-apple-headers.diff, 6.2 KB (added by agb-macports@…, 15 years ago)

Diff of Apple and Macports Python 2.5.4 headers

  • py_curses.h

    diff -urN /System/Library/Frameworks/Python.framework/Versions/2.5/Headers/py_curses.h /opt/local/include/python2.5/py_curses.h
    old new  
    4040#endif
    4141
    4242#ifdef HAVE_NCURSES_H
    43 #define NCURSES_OPAQUE 0
    4443#include <ncurses.h>
    4544#else
    4645#include <curses.h>
  • pyconfig.h

    diff -urN /System/Library/Frameworks/Python.framework/Versions/2.5/Headers/pyconfig.h /opt/local/include/python2.5/pyconfig.h
    old new  
    55#ifndef Py_PYCONFIG_H
    66#define Py_PYCONFIG_H
    77
     8// Required on Darwin 10+
     9#ifndef _DARWIN_C_SOURCE
     10#define _DARWIN_C_SOURCE
     11#endif
    812
    913/* Define for AIX if your compiler is a genuine IBM xlC/xlC_r and you want
    1014   support for AIX C++ shared extension modules. */
     
    287291   and long long is available and at least as big as an off_t. You may need to
    288292   add some flags for configuration and compilation to enable this mode. (For
    289293   Solaris and Linux, the necessary defines are already defined.) */
    290 #ifdef __LP64__
    291294/* #undef HAVE_LARGEFILE_SUPPORT */
    292 #else
    293 #define HAVE_LARGEFILE_SUPPORT 1
    294 #endif
    295295
    296296/* Define to 1 if you have the `lchown' function. */
    297297#define HAVE_LCHOWN 1
     
    306306/* #undef HAVE_LIBIEEE */
    307307
    308308/* Define to 1 if you have the <libintl.h> header file. */
    309 /* #undef HAVE_LIBINTL_H */
     309#define HAVE_LIBINTL_H 1
    310310
    311311/* Define to 1 if you have the `readline' library (-lreadline). */
    312312#define HAVE_LIBREADLINE 1
     
    315315/* #undef HAVE_LIBRESOLV */
    316316
    317317/* Define to 1 if you have the <libutil.h> header file. */
    318 #define HAVE_LIBUTIL_H 1
     318/* #undef HAVE_LIBUTIL_H */
    319319
    320320/* Define if you have the 'link' function. */
    321321#define HAVE_LINK 1
     
    378378/* #undef HAVE_PLOCK */
    379379
    380380/* Define to 1 if you have the `poll' function. */
    381 /* #undef HAVE_POLL */
     381#define HAVE_POLL 1
    382382
    383383/* Define to 1 if you have the <poll.h> header file. */
    384 /* #undef HAVE_POLL_H */
     384#define HAVE_POLL_H 1
    385385
    386386/* Define to 1 if you have the <process.h> header file. */
    387387/* #undef HAVE_PROCESS_H */
     
    420420#define HAVE_RL_CALLBACK 1
    421421
    422422/* Define if you can turn off readline's signal handling. */
    423 /* #undef HAVE_RL_CATCH_SIGNAL */
     423#define HAVE_RL_CATCH_SIGNAL 1
    424424
    425425/* Define if you have readline 2.2 */
    426426#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
     
    779779/* #undef Py_DEBUG */
    780780
    781781/* Defined if Python is built as a shared library. */
    782 /* #undef Py_ENABLE_SHARED */
     782#define Py_ENABLE_SHARED 1
    783783
    784784/* Define as the size of the unicode type. */
    785785#define Py_UNICODE_SIZE 2
     
    812812#define SIZEOF_INT 4
    813813
    814814/* The size of `long', as computed by sizeof. */
    815 #ifdef __LP64__
    816815#define SIZEOF_LONG 8
    817 #else
    818 #define SIZEOF_LONG 4
    819 #endif
    820816
    821817/* The size of `long long', as computed by sizeof. */
    822818#define SIZEOF_LONG_LONG 8
     
    825821#define SIZEOF_OFF_T 8
    826822
    827823/* The number of bytes in a pthread_t. */
    828 #ifdef __LP64__
    829824#define SIZEOF_PTHREAD_T 8
    830 #else
    831 #define SIZEOF_PTHREAD_T 4
    832 #endif
    833825
    834826/* The size of `short', as computed by sizeof. */
    835827#define SIZEOF_SHORT 2
    836828
    837829/* The size of `size_t', as computed by sizeof. */
    838 #ifdef __LP64__
    839830#define SIZEOF_SIZE_T 8
    840 #else
    841 #define SIZEOF_SIZE_T 4
    842 #endif
    843831
    844832/* The number of bytes in a time_t. */
    845 #ifdef __LP64__
    846833#define SIZEOF_TIME_T 8
    847 #else
    848 #define SIZEOF_TIME_T 4
    849 #endif
    850834
    851835/* The size of `uintptr_t', as computed by sizeof. */
    852 #ifdef __LP64__
    853836#define SIZEOF_UINTPTR_T 8
    854 #else
    855 #define SIZEOF_UINTPTR_T 4
    856 #endif
    857837
    858838/* The size of `void *', as computed by sizeof. */
    859 #ifdef __LP64__
    860839#define SIZEOF_VOID_P 8
    861 #else
    862 #define SIZEOF_VOID_P 4
    863 #endif
    864840
    865841/* The size of `wchar_t', as computed by sizeof. */
    866842#define SIZEOF_WCHAR_T 4
     
    879855/* #undef TM_IN_SYS_TIME */
    880856
    881857/* Define if you want to use MacPython modules on MacOSX in unix-Python. */
    882 #define USE_TOOLBOX_OBJECT_GLUE 1
     858/* #undef USE_TOOLBOX_OBJECT_GLUE */
    883859
    884860/* Define if a va_list is an array of some kind */
    885 /* #undef VA_LIST_IS_ARRAY */
     861#define VA_LIST_IS_ARRAY 1
    886862
    887863/* Define if you want SIGFPE handled (see Include/pyfpe.h). */
    888864/* #undef WANT_SIGFPE_HANDLER */
     
    903879#define WITH_DYLD 1
    904880
    905881/* Define to 1 if libintl is needed for locale functions. */
    906 /* #undef WITH_LIBINTL */
     882#define WITH_LIBINTL 1
    907883
    908884/* Define if you want to produce an OpenStep/Rhapsody framework (shared
    909885   library plus accessory files). */
    910 #define WITH_NEXT_FRAMEWORK 1
     886/* #undef WITH_NEXT_FRAMEWORK */
    911887
    912888/* Define if you want to compile in Python-specific mallocs */
    913889#define WITH_PYMALLOC 1
     
    928904    such that the configure-result is used on systems that don't use GCC.
    929905  */
    930906#ifdef __BIG_ENDIAN__
    931 #if __BIG_ENDIAN__
    932907#define WORDS_BIGENDIAN 1
    933 #endif /* __BIG_ENDIAN__ */
    934908#else
    935909#ifndef __LITTLE_ENDIAN__
    936910/* #undef WORDS_BIGENDIAN */
     
    991965/* Defined on Solaris to see additional function prototypes. */
    992966/* #undef __EXTENSIONS__ */
    993967
    994 /* Define on Mac OS X to activate all library features */
    995 #define _DARWIN_C_SOURCE 1
    996 
    997968/* Define to 'long' if <time.h> doesn't define. */
    998969/* #undef clock_t */
    999970
  • pymactoolbox.h

    diff -urN /System/Library/Frameworks/Python.framework/Versions/2.5/Headers/pymactoolbox.h /opt/local/include/python2.5/pymactoolbox.h
    old new  
    88#endif
    99
    1010#include <Carbon/Carbon.h>
    11 #ifndef __LP64__
    1211#include <QuickTime/QuickTime.h>
    13 #endif /* !__LP64__ */
    1412
    1513/*
    1614** Helper routines for error codes and such.
     
    135133extern PyObject *GWorldObj_New(GWorldPtr);
    136134extern int GWorldObj_Convert(PyObject *, GWorldPtr *);
    137135
    138 #ifndef __LP64__
    139136/* Qt exports */
    140137extern PyObject *TrackObj_New(Track);
    141138extern int TrackObj_Convert(PyObject *, Track *);
     
    149146extern int UserDataObj_Convert(PyObject *, UserData *);
    150147extern PyObject *MediaObj_New(Media);
    151148extern int MediaObj_Convert(PyObject *, Media *);
    152 #endif /* !__LP64__ */
    153149
    154150/* Res exports */
    155151extern PyObject *ResObj_New(Handle);