mirror of
https://github.com/pybind/pybind11.git
synced 2026-04-30 19:51:31 +00:00
Fix usage of WIN32 define
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
#endif
|
||||
|
||||
#if !defined(PYTHON_EXPORT)
|
||||
#if defined(WIN32)
|
||||
#if defined(WIN32) || defined(_WIN32)
|
||||
#define PYTHON_EXPORT __declspec(dllexport)
|
||||
#else
|
||||
#define PYTHON_EXPORT __attribute__ ((visibility("default")))
|
||||
|
||||
Reference in New Issue
Block a user