diff --git a/ReactCommon/jschelpers/JSCWrapper.h b/ReactCommon/jschelpers/JSCWrapper.h index 03d2f3bdad..97fb661f7e 100644 --- a/ReactCommon/jschelpers/JSCWrapper.h +++ b/ReactCommon/jschelpers/JSCWrapper.h @@ -48,7 +48,7 @@ JSC_IMPORT JSValueRef JSPokeSamplingProfiler(JSContextRef); * * Version number indicating that bytecode is not supported by this runtime. */ -extern const int32_t JSNoBytecodeFileFormatVersion; +__attribute__((visibility("default"))) extern const int32_t JSNoBytecodeFileFormatVersion; namespace facebook { namespace react { diff --git a/ReactCommon/jschelpers/Unicode.h b/ReactCommon/jschelpers/Unicode.h index cc1e25836b..a3e5fa9397 100644 --- a/ReactCommon/jschelpers/Unicode.h +++ b/ReactCommon/jschelpers/Unicode.h @@ -8,7 +8,7 @@ namespace facebook { namespace react { namespace unicode { -std::string utf16toUTF8(const uint16_t* utf16, size_t length) noexcept; +__attribute__((visibility("default"))) std::string utf16toUTF8(const uint16_t* utf16, size_t length) noexcept; } } } diff --git a/ReactCommon/jschelpers/Value.h b/ReactCommon/jschelpers/Value.h index 10dfb18def..e0f1d0e087 100644 --- a/ReactCommon/jschelpers/Value.h +++ b/ReactCommon/jschelpers/Value.h @@ -233,9 +233,9 @@ private: class Value : public noncopyable { public: - Value(JSContextRef context, JSValueRef value); - Value(JSContextRef context, JSStringRef value); - Value(Value&&); + __attribute__((visibility("default"))) Value(JSContextRef context, JSValueRef value); + __attribute__((visibility("default"))) Value(JSContextRef context, JSStringRef value); + __attribute__((visibility("default"))) Value(Value&&); Value& operator=(Value&& other) { m_context = other.m_context; @@ -316,10 +316,10 @@ public: return Value(ctx, JSC_JSValueMakeNull(ctx)); } - std::string toJSONString(unsigned indent = 0) const; - static Value fromJSON(JSContextRef ctx, const String& json); - static JSValueRef fromDynamic(JSContextRef ctx, const folly::dynamic& value); - JSContextRef context() const; + __attribute__((visibility("default"))) std::string toJSONString(unsigned indent = 0) const; + __attribute__((visibility("default"))) static Value fromJSON(JSContextRef ctx, const String& json); + __attribute__((visibility("default"))) static JSValueRef fromDynamic(JSContextRef ctx, const folly::dynamic& value); + __attribute__((visibility("default"))) JSContextRef context() const; protected: JSContextRef m_context; JSValueRef m_value;