Changeset 3392


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

use dllexport on OS/2.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/essentials/dev-lang/python/Include/pyport.h

    r3225 r3392  
    595595
    596596  BeOS and cygwin are the only other autoconf platform requiring special
    597   linkage handling and both of these use __declspec().
     597  linkage handling and both of these use __declspec(). Ditto for OS/2.
    598598*/
    599 #if defined(__CYGWIN__) || defined(__BEOS__)
     599#if defined(__CYGWIN__) || defined(__BEOS__) || defined(__OS2__)
    600600#       define HAVE_DECLSPEC_DLL
    601601#endif
     
    609609                        /* module init functions inside the core need no external linkage */
    610610                        /* except for Cygwin to handle embedding (FIXME: BeOS too?) */
    611 #                       if defined(__CYGWIN__)
     611#                       if defined(__CYGWIN__) || defined(__OS2__)
    612612#                               define PyMODINIT_FUNC __declspec(dllexport) void
    613613#                       else /* __CYGWIN__ */
Note: See TracChangeset for help on using the changeset viewer.