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 c4ee83c commit 316273eCopy full SHA for 316273e
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