Module: wine Branch: master Commit: 14e7e331ae2e86910dbe3c2d9ecd50aa003dd195 URL: https://source.winehq.org/git/wine.git/?a=commit;h=14e7e331ae2e86910dbe3c2d9...
Author: Jacek Caban jacek@codeweavers.com Date: Tue Aug 6 12:23:24 2019 +0200
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
---
include/msvcrt/stdio.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/include/msvcrt/stdio.h b/include/msvcrt/stdio.h index 014e68a..8d8f208 100644 --- a/include/msvcrt/stdio.h +++ b/include/msvcrt/stdio.h @@ -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