Skip to content

Commit 12a3b91

Browse files
committed
Remove "hidden" attribute from nanobind namespace
Remove the `hidden` attribute from the nanobind namespace, as it was causing linking problems.
1 parent 41ae829 commit 12a3b91

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

include/nanobind/nb_defs.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,7 @@
4040
# endif
4141
#endif
4242

43-
#if defined(__GNUC__) && !defined(_WIN32)
44-
# define NB_NAMESPACE nanobind __attribute__((visibility("hidden")))
45-
#else
46-
# define NB_NAMESPACE nanobind
47-
#endif
43+
#define NB_NAMESPACE nanobind
4844

4945
#if defined(__GNUC__)
5046
# define NB_UNLIKELY(x) __builtin_expect(bool(x), 0)

0 commit comments

Comments
 (0)