Re: [Mingw-w64-public] [PATCH] headers: Implement the conio.h printf/scanf functions for ucrtbase

2017-11-24 Thread Martin Storsjö
On Fri, 24 Nov 2017, Jacek Caban wrote: On 24.11.2017 11:37, Martin Storsjö wrote: MSVC doesn't provide these functions as global symbols at the linker level, but there you must include a header to make them work. Additionally, for the wchar versions, you can currently override the behaviour b

Re: [Mingw-w64-public] [PATCH] headers: Implement the conio.h printf/scanf functions for ucrtbase

2017-11-24 Thread Jacek Caban
On 24.11.2017 11:37, Martin Storsjö wrote: > MSVC doesn't provide these functions as global symbols at the linker > level, but there you must include a header to make them work. > > Additionally, for the wchar versions, you can currently override the > behaviour by setting UCRTBASE_PRINTF_DEFAULT_W

Re: [Mingw-w64-public] [PATCH] headers: Implement the conio.h printf/scanf functions for ucrtbase

2017-11-24 Thread Martin Storsjö
On Fri, 24 Nov 2017, Jacek Caban wrote: Hi Martin, On 11/24/17 11:03 AM, Martin Storsjö wrote: --- mingw-w64-headers/crt/conio.h | 214 +- 1 file changed, 209 insertions(+), 5 deletions(-) Since we already know that we often need such functions i

Re: [Mingw-w64-public] [PATCH] headers: Implement the conio.h printf/scanf functions for ucrtbase

2017-11-24 Thread Jacek Caban
Hi Martin, On 11/24/17 11:03 AM, Martin Storsjö wrote: --- mingw-w64-headers/crt/conio.h | 214 +- 1 file changed, 209 insertions(+), 5 deletions(-) Since we already know that we often need such functions in libucrtbase.a, wouldn't it make more sens

[Mingw-w64-public] [PATCH] headers: Implement the conio.h printf/scanf functions for ucrtbase

2017-11-24 Thread Martin Storsjö
Some declarations were moved slightly, to reduce the amount of ifdeffing needed. I only provide the same set of functions as before, not (yet?) the full set of functions possible with the ucrtbase common functions. Signed-off-by: Martin Storsjö --- mingw-w64-headers/crt/conio.h | 214 ++