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 f827501 commit 511cc90Copy full SHA for 511cc90
paddle/fluid/pybind/protobuf.cc
@@ -29,8 +29,16 @@ limitations under the License. */
29
namespace pybind11 {
30
namespace detail {
31
32
+#if !defined(PYBIND11_HIDDEN)
33
+#ifdef _WIN32
34
+#define PYBIND11_HIDDEN __declspec(dllexport)
35
+#else
36
+#define PYBIND11_HIDDEN __attribute__((visibility("hidden")))
37
+#endif
38
39
+
40
// Can be replaced by a generic lambda in C++14
-struct __attribute__((visibility("hidden"))) paddle_variant_caster_visitor
41
+struct PYBIND11_HIDDEN paddle_variant_caster_visitor
42
: public boost::static_visitor<handle> {
43
return_value_policy policy;
44
handle parent;
0 commit comments