diff --git a/classpath/java-io.cpp b/classpath/java-io.cpp index f3ed5bafaa..b93b3f94ae 100644 --- a/classpath/java-io.cpp +++ b/classpath/java-io.cpp @@ -222,11 +222,11 @@ class Directory { } // namespace -inline string_t getChars(JNIEnv* e, jstring path) { +static inline string_t getChars(JNIEnv* e, jstring path) { return reinterpret_cast(e->GET_CHARS(path, 0)); } -inline void releaseChars(JNIEnv* e, jstring path, string_t chars) { +static inline void releaseChars(JNIEnv* e, jstring path, string_t chars) { e->RELEASE_CHARS(path, chars); }