We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8bb2303 commit 9ca49beCopy full SHA for 9ca49be
Include/exports.h
@@ -2,9 +2,15 @@
2
#define Py_EXPORTS_H
3
4
#if defined(_WIN32) || defined(__CYGWIN__)
5
- #define Py_IMPORTED_SYMBOL __declspec(dllimport)
6
- #define Py_EXPORTED_SYMBOL __declspec(dllexport)
7
- #define Py_LOCAL_SYMBOL
+ #if defined(Py_ENABLE_SHARED)
+ #define Py_IMPORTED_SYMBOL __declspec(dllimport)
+ #define Py_EXPORTED_SYMBOL __declspec(dllexport)
8
+ #define Py_LOCAL_SYMBOL
9
+ #else
10
+ #define Py_IMPORTED_SYMBOL
11
+ #define Py_EXPORTED_SYMBOL
12
13
+ #endif
14
#else
15
/*
16
* If we only ever used gcc >= 5, we could use __has_attribute(visibility)
0 commit comments