# HG changeset patch # User Markus Bröker # Date 1276979634 -7200 # Node ID 8325a0fc22cd26d7036eb6f73abe1488c80b64c3 # Parent f46f9606dbfb8b9d8490d2184b23f05fc1aee819 simple corrections make both jni functions invisible to others use platform independent separators committer: Markus Bröker diff --git a/libConsole/Console.java b/libConsole/Console.java --- a/libConsole/Console.java +++ b/libConsole/Console.java @@ -1,8 +1,10 @@ +import java.io.File; + public class Console { public static native int getch (); private static void help () { String p = System.getProperty ("java.library.path"); - String[] msg = p.split (":"); + String[] msg = p.split (File.pathSeparator); System.err.printf ("Console Error:%n"); for (int i = 0; i < msg.length; i++) diff --git a/libConsole/cross_getch.c b/libConsole/cross_getch.c --- a/libConsole/cross_getch.c +++ b/libConsole/cross_getch.c @@ -10,7 +10,7 @@ #ifdef WIN32 #include -int cross_getch () +static int cross_getch () { int ch = -1;