File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,9 @@ namespace workerd::jsg {
2525template <typename T, bool = isGcVisitable<T>()>
2626struct OpaqueWrappable ;
2727
28- struct OpaqueWrappableBase : public Wrappable {
28+ #define DEFAULT_VISIBILITY __attribute__ ((visibility(" default" )))
29+
30+ struct DEFAULT_VISIBILITY OpaqueWrappableBase: public Wrappable {
2931 kj::StringPtr jsgGetMemoryName () const override final {
3032 return " OpaqueWrappable" _kjc;
3133 }
@@ -40,7 +42,7 @@ struct OpaqueWrappableBase: public Wrappable {
4042// values.
4143
4244template <typename T>
43- struct OpaqueWrappable <T, false > final : public OpaqueWrappableBase {
45+ struct DEFAULT_VISIBILITY OpaqueWrappable<T, false > final : public OpaqueWrappableBase {
4446 // Used to implement wrapOpaque().
4547
4648 OpaqueWrappable (T&& value): value(kj::mv(value)) {}
@@ -54,7 +56,7 @@ struct OpaqueWrappable<T, false> final: public OpaqueWrappableBase {
5456};
5557
5658template <typename T>
57- struct OpaqueWrappable <T, true > final : public OpaqueWrappableBase {
59+ struct DEFAULT_VISIBILITY OpaqueWrappable<T, true > final : public OpaqueWrappableBase {
5860 // When T is GC-visitable, make sure to implement visitation.
5961
6062 OpaqueWrappable (T&& value): value(kj::mv(value)) {}
You can’t perform that action at this time.
0 commit comments