summaryrefslogtreecommitdiff
path: root/data/jocstrap/closures.diff
diff options
context:
space:
mode:
Diffstat (limited to 'data/jocstrap/closures.diff')
-rw-r--r--data/jocstrap/closures.diff15
1 files changed, 15 insertions, 0 deletions
diff --git a/data/jocstrap/closures.diff b/data/jocstrap/closures.diff
new file mode 100644
index 000000000..fdba6d14c
--- /dev/null
+++ b/data/jocstrap/closures.diff
@@ -0,0 +1,15 @@
+diff -ru jocstrap-1.0.2474/jocstrap/source/joc/Runtime.m jocstrap-1.0.2474+iPhone/jocstrap/source/joc/Runtime.m
+--- jocstrap-1.0.2474/jocstrap/source/joc/Runtime.m 2008-07-14 02:07:50.000000000 +0000
++++ jocstrap-1.0.2474+iPhone/jocstrap/source/joc/Runtime.m 2008-07-14 04:36:25.000000000 +0000
+@@ -242,7 +242,11 @@
+ @throw joc_FromObject(env, error);
+ }
+
++#ifdef __OBJC2__
+ #define UseClosures false
++#else
++#define UseClosures true
++#endif
+
+ void ejprint(JNIEnv *env, jstring jvalue) {
+ const char *cvalue = (*(*env)->GetStringUTFChars)(env, jvalue, NULL);