We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc69a37 commit eb922a8Copy full SHA for eb922a8
1 file changed
include/pybind11/detail/pybind11_namespace_macros.h
@@ -74,7 +74,7 @@
74
// requires forcing hidden visibility on pybind code, so we enforce this by setting the attribute
75
// on the main `pybind11` namespace.
76
#if !defined(PYBIND11_NAMESPACE)
77
-# ifdef __GNUG__
+# if defined(__GNUG__) && !defined(_WIN32)
78
# define PYBIND11_NAMESPACE pybind11 __attribute__((visibility("hidden")))
79
# else
80
# define PYBIND11_NAMESPACE pybind11
0 commit comments