update for HEAD-2003021201
[reactos.git] / lib / crtdll / conio / ungetch.c
index 730ac39..8b974bb 100644 (file)
  *              28/12/98: Created
  */
 
-#include <crtdll/process.h>
+#include <msvcrt/conio.h>
+#include <msvcrt/internal/console.h>
+
 #define EOF -1
 
 int char_avail = 0;
-char ungot_char = 0;
+int ungot_char = 0;
 
 
-int
-_ungetch(int c)
+int _ungetch(int c)
 {
   if (char_avail)
     return(EOF);