|
36 | 36 | #define Py_LOCAL_SYMBOL |
37 | 37 | #endif |
38 | 38 | /* module init functions outside the core must be exported */ |
39 | | - #if defined(Py_BUILD_CORE) |
| 39 | + #if defined(_PyEXPORTS_CORE) |
40 | 40 | #define _PyINIT_EXPORTED_SYMBOL Py_EXPORTED_SYMBOL |
41 | 41 | #else |
42 | 42 | #define _PyINIT_EXPORTED_SYMBOL __declspec(dllexport) |
|
64 | 64 | /* only get special linkage if built as shared or platform is Cygwin */ |
65 | 65 | #if defined(Py_ENABLE_SHARED) || defined(__CYGWIN__) |
66 | 66 | # if defined(HAVE_DECLSPEC_DLL) |
67 | | -# if defined(Py_BUILD_CORE) && !defined(Py_BUILD_CORE_MODULE) |
| 67 | +# if defined(_PyEXPORTS_CORE) && !defined(_PyEXPORTS_CORE_MODULE) |
68 | 68 | /* module init functions inside the core need no external linkage */ |
69 | 69 | /* except for Cygwin to handle embedding */ |
70 | 70 | # if !defined(__CYGWIN__) |
71 | 71 | # define _PyINIT_FUNC_DECLSPEC |
72 | 72 | # endif /* __CYGWIN__ */ |
73 | | -# else /* Py_BUILD_CORE */ |
| 73 | +# else /* _PyEXPORTS_CORE */ |
74 | 74 | /* Building an extension module, or an embedded situation */ |
75 | 75 | /* public Python functions and data are imported */ |
76 | 76 | /* Under Cygwin, auto-import functions to prevent compilation */ |
|
80 | 80 | # define PyAPI_FUNC(RTYPE) Py_IMPORTED_SYMBOL RTYPE |
81 | 81 | # endif /* !__CYGWIN__ */ |
82 | 82 | # define PyAPI_DATA(RTYPE) extern Py_IMPORTED_SYMBOL RTYPE |
83 | | -# endif /* Py_BUILD_CORE */ |
| 83 | +# endif /* _PyEXPORTS_CORE */ |
84 | 84 | # endif /* HAVE_DECLSPEC_DLL */ |
85 | 85 | #endif /* Py_ENABLE_SHARED */ |
86 | 86 |
|
|
0 commit comments