Explicitely export some symbols since they can be referenced from outside that library.

Differential Revision: D5024612

fbshipit-source-id: 6d75ebce9422c879bfc0acdb1159be72756a2f15
This commit is contained in:
Hoa Dinh 2017-05-08 19:32:12 -07:00 коммит произвёл Facebook Github Bot
Родитель 712b1dd20a
Коммит 3dfed2e865
3 изменённых файлов: 9 добавлений и 9 удалений

Просмотреть файл

@ -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 {

Просмотреть файл

@ -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;
}
}
}

Просмотреть файл

@ -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;