- Fixed bug with input to the console (when clicking on "backspace" characters were not deleted).
- Added _NO_STDERR macro for redirecting "stderr" to the console

git-svn-id: svn://kolibrios.org@8777 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
turbocat
2021-06-07 16:51:13 +00:00
parent 71343e1178
commit 707de77a80
3 changed files with 23 additions and 6 deletions

View File

@@ -146,12 +146,19 @@ typedef _fpos64_t fpos64_t;
#define stdin (_REENT->_stdin)
#define stdout (_REENT->_stdout)
#define stderr (_REENT->_stderr)
#ifndef _NO_STDERR
#define stderr (_REENT->_stderr)
#else
#define stderr stdout
#endif
#define _stdin_r(x) ((x)->_stdin)
#define _stdout_r(x) ((x)->_stdout)
#define _stderr_r(x) ((x)->_stderr)
/*
* Functions defined in ANSI C standard.
*/