summaryrefslogtreecommitdiffstats
path: root/Source/JavaScriptCore/API/JSBase.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/JavaScriptCore/API/JSBase.h')
-rw-r--r--Source/JavaScriptCore/API/JSBase.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/JavaScriptCore/API/JSBase.h b/Source/JavaScriptCore/API/JSBase.h
index d962b01..fed54fe 100644
--- a/Source/JavaScriptCore/API/JSBase.h
+++ b/Source/JavaScriptCore/API/JSBase.h
@@ -80,6 +80,11 @@ typedef struct OpaqueJSValue* JSObjectRef;
#define JS_EXPORT
#endif /* defined(JS_NO_EXPORT) */
+/* JS tests uses WTF but has no config.h, so we need to set the export defines here. */
+#ifndef WTF_EXPORT_PRIVATE
+#define WTF_EXPORT_PRIVATE JS_EXPORT
+#endif
+
#ifdef __cplusplus
extern "C" {
#endif