Commit 695a7f50 authored by aestes@apple.com's avatar aestes@apple.com

[iOS] Define JSC_OBJC_API_ENABLED

https://bugs.webkit.org/show_bug.cgi?id=124192

Reviewed by Geoffrey Garen.

* API/JSBase.h: JSC_OBJC_API_ENABLED should evaluate to true if
TARGET_OS_IPHONE is true.
* API/JSValue.h: Ensure CG types referenced later in the file are defined.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159125 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 744bfb9b
......@@ -142,7 +142,7 @@ JS_EXPORT void JSGarbageCollect(JSContextRef ctx);
/* Enable the Objective-C API for platforms with a modern runtime. */
#if !defined(JSC_OBJC_API_ENABLED)
#ifndef JSC_OBJC_API_AVAILABLE_MAC_OS_X_1080
#define JSC_OBJC_API_ENABLED (defined(__clang__) && defined(__APPLE__) && defined(__MAC_OS_X_VERSION_MIN_REQUIRED) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090 && !defined(__i386__))
#define JSC_OBJC_API_ENABLED (defined(__clang__) && defined(__APPLE__) && ((defined(__MAC_OS_X_VERSION_MIN_REQUIRED) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090 && !defined(__i386__)) || (defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE)))
#else
#define JSC_OBJC_API_ENABLED (defined(__clang__) && defined(__APPLE__) && defined(__MAC_OS_X_VERSION_MIN_REQUIRED) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1080 && !defined(__i386__))
#endif
......
......@@ -28,6 +28,8 @@
#if JSC_OBJC_API_ENABLED
#import <CoreGraphics/CGGeometry.h>
@class JSContext;
// A JSValue is a reference to a value within the JavaScript object space of a
......
2013-11-11 Andy Estes <aestes@apple.com>
[iOS] Define JSC_OBJC_API_ENABLED
https://bugs.webkit.org/show_bug.cgi?id=124192
Reviewed by Geoffrey Garen.
* API/JSBase.h: JSC_OBJC_API_ENABLED should evaluate to true if
TARGET_OS_IPHONE is true.
* API/JSValue.h: Ensure CG types referenced later in the file are defined.
2013-11-12 Balazs Kilvady <kilvadyb@homejinni.com>
Fix undefined reference issues in JavaScriptCore build.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment