mirror of
https://github.com/pybind/pybind11.git
synced 2026-04-20 14:59:27 +00:00
fix: don't force -fvisibility=hidden on Windows (#5757)
Fix https://github.com/pybind/pybind11/discussions/5750
This commit is contained in:
@@ -74,7 +74,7 @@
|
|||||||
// requires forcing hidden visibility on pybind code, so we enforce this by setting the attribute
|
// requires forcing hidden visibility on pybind code, so we enforce this by setting the attribute
|
||||||
// on the main `pybind11` namespace.
|
// on the main `pybind11` namespace.
|
||||||
#if !defined(PYBIND11_NAMESPACE)
|
#if !defined(PYBIND11_NAMESPACE)
|
||||||
# ifdef __GNUG__
|
# if defined(__GNUG__) && !defined(_WIN32)
|
||||||
# define PYBIND11_NAMESPACE pybind11 __attribute__((visibility("hidden")))
|
# define PYBIND11_NAMESPACE pybind11 __attribute__((visibility("hidden")))
|
||||||
# else
|
# else
|
||||||
# define PYBIND11_NAMESPACE pybind11
|
# define PYBIND11_NAMESPACE pybind11
|
||||||
|
|||||||
Reference in New Issue
Block a user