Re: [Mingw-w64-public] [PATCH mingw-w64] Add include/iscygtty.c

2016-11-09 Thread Vincent Torri
hello just call GetConsoleMode() and check its result to know if the redirection is with a pipe or a console handle Vincent On Thu, Nov 10, 2016 at 1:46 AM, Mihail Konev wrote: > Applications now could call iscygtty(STDIN_FILENO) > in order to detect whether they are running from

[Mingw-w64-public] [PATCH mingw-w64] Add include/iscygtty.c

2016-11-09 Thread Mihail Konev
Applications now could call iscygtty(STDIN_FILENO) in order to detect whether they are running from Cygwin/MSys terminal. Without that, they have no choice but to think that stdin is redirected from a named pipe. Signed-off-by: Mihail Konev Moved-from:

Re: [Mingw-w64-public] std::regex not fulfilling standard? missing templates

2016-11-09 Thread Jim Michaels
#include #include #include int main(void) {//u2d? std::cout<

[Mingw-w64-public] [PATCH 6/7] dpapi: Crypt*Data functions are allowed on Win10

2016-11-09 Thread Hugo Beauzée-Luyssen
--- mingw-w64-headers/include/dpapi.h | 24 +++- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/mingw-w64-headers/include/dpapi.h b/mingw-w64-headers/include/dpapi.h index 1e685ea..8ff8630 100644 --- a/mingw-w64-headers/include/dpapi.h +++

[Mingw-w64-public] [PATCH 0/7] Various WinRT/UWP fixes

2016-11-09 Thread Hugo Beauzée-Luyssen
Hi, I'm resending a few patches that got buried, with a few extra ones and some with additional fixes. The first 2 are aiming at xbox1, but windowsapp.lib can be used for all all uwp targets. The rest is mostly a few functions that are treated as forbidden while they aren't, and a fix to

[Mingw-w64-public] [PATCH 3/7] include: SwitchToThread is always available on Win10

2016-11-09 Thread Hugo Beauzée-Luyssen
--- mingw-w64-headers/include/processthreadsapi.h | 1 + 1 file changed, 1 insertion(+) diff --git a/mingw-w64-headers/include/processthreadsapi.h b/mingw-w64-headers/include/processthreadsapi.h index 7e14eb9..c4629f7 100755 --- a/mingw-w64-headers/include/processthreadsapi.h +++

[Mingw-w64-public] [PATCH 7/7] wincrypt: Unconditionally include dpapi.h

2016-11-09 Thread Hugo Beauzée-Luyssen
Since it now contains some functions that can be used on win10 --- mingw-w64-headers/include/wincrypt.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/mingw-w64-headers/include/wincrypt.h b/mingw-w64-headers/include/wincrypt.h index 759758f..7425823 100644 ---

[Mingw-w64-public] [PATCH 4/7] winstorecompat: Add GetConsoleOutputCP replacement

2016-11-09 Thread Hugo Beauzée-Luyssen
--- mingw-w64-headers/include/wincon.h | 4 +++ mingw-w64-libraries/winstorecompat/Makefile.am | 1 + .../winstorecompat/src/GetConsoleOutputCP.c| 38 ++ 3 files changed, 43 insertions(+) create mode 100644

[Mingw-w64-public] [PATCH 5/7] winstorecompat: Fix mangling header guard.

2016-11-09 Thread Hugo Beauzée-Luyssen
Symbols are only mangled on i686, while the old check was causing arm symbols to be mangled as well --- mingw-w64-libraries/winstorecompat/src/CreateEventW.c| 2 +- mingw-w64-libraries/winstorecompat/src/CreateFileW.c | 2 +-

[Mingw-w64-public] [PATCH 2/7] winstorecompat: Add a GetStartupInfo stub

2016-11-09 Thread Hugo Beauzée-Luyssen
This is required for configure test executables to link when building with windowsapp.lib --- mingw-w64-libraries/winstorecompat/Makefile.am | 1 + .../winstorecompat/src/GetStartupInfo.c| 44 ++ 2 files changed, 45 insertions(+) create mode 100644