Use free Windows DDK and compile with latest MinGW releases.
[reactos.git] / reactos / lib / msvcrt / conio / getche.c
index f994649..0d4b61f 100644 (file)
@@ -9,12 +9,10 @@
  * UPDATE HISTORY:
  *              28/12/98: Created
  */
+#include <msvcrti.h>
 
-#include <msvcrt/conio.h>
-#include <msvcrt/internal/console.h>
 
-
-int getche(void)
+int _getche(void)
 {
   if (char_avail)
     /*
@@ -26,6 +24,6 @@ int getche(void)
      * hasn't been got by a conio function.
      * We don't echo again.
      */ 
-    return(getch());
-  return (_putch(getch()));
+    return(_getch());
+  return (_putch(_getch()));
 }