change
authorbdemsky <bdemsky>
Sat, 16 Apr 2011 08:12:37 +0000 (08:12 +0000)
committerbdemsky <bdemsky>
Sat, 16 Apr 2011 08:12:37 +0000 (08:12 +0000)
Robust/src/IR/Flat/BuildCode.java

index 8319a245693300f4a4590e308b86480f981caeff..a608d2e6c85c5b0ee085e20fec0550390c10a36b 100644 (file)
@@ -457,7 +457,9 @@ public class BuildCode {
     outmethod.println("#include \"methodheaders.h\"");
     outmethod.println("#include \"virtualtable.h\"");
     outmethod.println("#include \"runtime.h\"");
-    outmethod.println("#include \"jni-private.h\"");
+    if (state.JNI) {
+      outmethod.println("#include \"jni-private.h\"");
+    }
 
     // always include: compiler directives will leave out
     // instrumentation when option is not set