From 8749ecd0d158456c6258cfd2efdaac821352db07 Mon Sep 17 00:00:00 2001 From: Alexey Andreev Date: Tue, 1 Oct 2019 18:45:42 +0300 Subject: [PATCH] C: fix System.nanoTime --- .../src/main/java/org/teavm/classlib/java/lang/TSystem.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/classlib/src/main/java/org/teavm/classlib/java/lang/TSystem.java b/classlib/src/main/java/org/teavm/classlib/java/lang/TSystem.java index 803be4b0f..ccc86b15e 100644 --- a/classlib/src/main/java/org/teavm/classlib/java/lang/TSystem.java +++ b/classlib/src/main/java/org/teavm/classlib/java/lang/TSystem.java @@ -32,7 +32,6 @@ import org.teavm.interop.DelegateTo; import org.teavm.interop.Import; import org.teavm.interop.NoSideEffects; import org.teavm.interop.Unmanaged; -import org.teavm.interop.c.Include; import org.teavm.jso.browser.Performance; import org.teavm.runtime.Allocator; import org.teavm.runtime.GC; @@ -272,7 +271,7 @@ public final class TSystem extends TObject { private static native double nanoTimeWasm(); @Import(name = "teavm_currentTimeNano") - @Include("time.h") + @RuntimeInclude("time.h") private static native long nanoTimeLowLevel(); public static int identityHashCode(Object x) {