stdio.h: Use __acrt_iob_func to access standard stream files.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2019-08-06 12:23:24 +02:00 committed by Alexandre Julliard
parent 351a87359d
commit 14e7e331ae
1 changed files with 5 additions and 3 deletions

View File

@ -90,9 +90,11 @@ FILE* __cdecl __iob_func(void);
# endif
#endif /* _STDIO_DEFINED */
#define stdin (_iob+STDIN_FILENO)
#define stdout (_iob+STDOUT_FILENO)
#define stderr (_iob+STDERR_FILENO)
FILE *__cdecl __acrt_iob_func(unsigned index);
#define stdin (__acrt_iob_func(0))
#define stdout (__acrt_iob_func(1))
#define stderr (__acrt_iob_func(2))
/* return value for _get_output_format */
#define _TWO_DIGIT_EXPONENT 0x1