simple corrections
authorMarkus Bröker <mbroeker@largo.dyndns.tv>
Sat, 19 Jun 2010 22:33:54 +0200
changeset 134 8325a0fc22cd
parent 133 f46f9606dbfb
child 135 f837cf975e95
simple corrections make both jni functions invisible to others use platform independent separators committer: Markus Bröker <mbroeker@largo.homelinux.org>
libConsole/Console.java
libConsole/cross_getch.c
--- 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++)
--- a/libConsole/cross_getch.c
+++ b/libConsole/cross_getch.c
@@ -10,7 +10,7 @@
 #ifdef WIN32
 #include <conio.h>
 
-int cross_getch ()
+static int cross_getch ()
 {
     int ch = -1;