X-Git-Url: http://git.subgeniuskitty.com/pforth/.git/blobdiff_plain/3760715f6e313ff90da32399fa1903c54f69d59b..e2531e837774276f6ffb3b284703c594644761f8:/csrc/win32/pf_io_win32.c diff --git a/csrc/win32/pf_io_win32.c b/csrc/win32/pf_io_win32.c index 24bfa8e..6fd93e3 100644 --- a/csrc/win32/pf_io_win32.c +++ b/csrc/win32/pf_io_win32.c @@ -23,16 +23,24 @@ #include /* Use console mode I/O so that KEY and ?TERMINAL will work. */ -#if WIN32 +#if defined(WIN32) || defined(__NT__) int sdTerminalOut( char c ) { +#if defined(__WATCOMC__) + return putch((char)(c)); +#else return _putch((char)(c)); +#endif } /* Needed cuz _getch() does not echo. */ int sdTerminalEcho( char c ) { +#if defined(__WATCOMC__) + return putch((char)(c)); +#else return _putch((char)(c)); +#endif } int sdTerminalIn( void )