mirror of
https://github.com/RYDE-WORK/pybind11.git
synced 2026-02-02 04:53:26 +08:00
Fix usage of WIN32 define
This commit is contained in:
parent
a2f6fde0dc
commit
6c698fec59
@ -17,7 +17,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(PYTHON_EXPORT)
|
#if !defined(PYTHON_EXPORT)
|
||||||
#if defined(WIN32)
|
#if defined(WIN32) || defined(_WIN32)
|
||||||
#define PYTHON_EXPORT __declspec(dllexport)
|
#define PYTHON_EXPORT __declspec(dllexport)
|
||||||
#else
|
#else
|
||||||
#define PYTHON_EXPORT __attribute__ ((visibility("default")))
|
#define PYTHON_EXPORT __attribute__ ((visibility("default")))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user