Skip to content

Commit 39d18d1

Browse files
committed
gh-141671: Use __declspec(dllexport) when not building core
1 parent cc6b62a commit 39d18d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Include/exports.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#endif
2727

2828
#if defined(_WIN32) || defined(__CYGWIN__)
29-
#if defined(Py_ENABLE_SHARED)
29+
#if !defined(Py_BUILD_CORE) || defined(Py_ENABLE_SHARED)
3030
#define Py_IMPORTED_SYMBOL __declspec(dllimport)
3131
#define Py_EXPORTED_SYMBOL __declspec(dllexport)
3232
#define Py_LOCAL_SYMBOL

0 commit comments

Comments
 (0)