summaryrefslogtreecommitdiff
path: root/data/jocstrap/closures.diff
blob: fdba6d14c9bf0cd69481f83408c9867eb9177220 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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);