summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Tokarev <annulen@yandex.ru>2016-06-15 16:20:43 +0300
committerKonstantin Tokarev <annulen@yandex.ru>2016-06-15 13:44:07 +0000
commit4afc16838f72b94ac1c73da6a8b215bebce30037 (patch)
treec7fe38ced2068d8d97db8cca9fb6e2c886c367bf
parent68edaccf80ec8fea4fb841a1ca0d2ecc0e388aee (diff)
downloadqtwebkit-4afc16838f72b94ac1c73da6a8b215bebce30037.tar.gz
Only Mac port needs ObjC API for JSC.
Change-Id: I32d6029139ac5b8118c3a350b68d6e55c8093a1a Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
-rw-r--r--Source/WTF/wtf/FeatureDefines.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/WTF/wtf/FeatureDefines.h b/Source/WTF/wtf/FeatureDefines.h
index 7329c95f5..e1007923c 100644
--- a/Source/WTF/wtf/FeatureDefines.h
+++ b/Source/WTF/wtf/FeatureDefines.h
@@ -188,6 +188,15 @@
#endif /* PLATFORM(MAC) && !PLATFORM(IOS) */
+#if !PLATFORM(MAC)
+
+#if !defined(JSC_OBJC_API_ENABLED)
+#define JSC_OBJC_API_ENABLED 0
+#endif
+
+#endif /* !PLATFORM(MAC) */
+
+
/* --------- Apple Windows port --------- */
#if PLATFORM(WIN) && !OS(WINCE) && !PLATFORM(WIN_CAIRO)