Changeset 10 for python/trunk/Include/pyport.h
- Timestamp:
- Sep 3, 2010, 5:33:06 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/trunk/Include/pyport.h
r2 r10 550 550 551 551 BeOS and cygwin are the only other autoconf platform requiring special 552 linkage handling and both of these use __declspec(). 552 linkage handling and both of these use __declspec(). Ditto for OS/2. 553 553 */ 554 #if defined(__CYGWIN__) || defined(__BEOS__) 554 #if defined(__CYGWIN__) || defined(__BEOS__) || defined(__OS2__) 555 555 # define HAVE_DECLSPEC_DLL 556 556 #endif … … 564 564 /* module init functions inside the core need no external linkage */ 565 565 /* except for Cygwin to handle embedding (FIXME: BeOS too?) */ 566 # if defined(__CYGWIN__) 566 # if defined(__CYGWIN__) || defined(__OS2__) 567 567 # define PyMODINIT_FUNC __declspec(dllexport) void 568 568 # else /* __CYGWIN__ */ … … 574 574 /* Under Cygwin, auto-import functions to prevent compilation */ 575 575 /* failures similar to http://python.org/doc/FAQ.html#3.24 */ 576 # if !defined(__CYGWIN__) 576 # if !defined(__CYGWIN__) && !defined(__OS2__) 577 577 # define PyAPI_FUNC(RTYPE) __declspec(dllimport) RTYPE 578 578 # endif /* !__CYGWIN__ */ 579 # if !defined(__OS2__) 579 580 # define PyAPI_DATA(RTYPE) extern __declspec(dllimport) RTYPE 581 # endif /* !__OS2__ */ 580 582 /* module init functions outside the core must be exported */ 581 583 # if defined(__cplusplus)
Note:
See TracChangeset
for help on using the changeset viewer.