[cmake-developers] [PATCH v5 2/2] Add MinGW support for FStream

2016-07-16 Thread Dāvis Mosāns
std::basic_filebuf::open(const wchar_t *) isn't part of C++ standard and it's only present for MSVC but it isn't present in libstdc++ (MinGW) so we implement this functionality using GNU libstdc++ stdio_filebuf extension and _wfopen function. --- Source/kwsys/CMakeLists.txt| 5 ++ Sou

[cmake-developers] [PATCH v5 1/2] Refactor FStream (basic_ifstream and basic_ofstream classes)

2016-07-16 Thread Dāvis Mosāns
Use common basic_efilebuf for both to reduce code duplication. --- Source/kwsys/FStream.hxx.in | 164 +--- 1 file changed, 95 insertions(+), 69 deletions(-) diff --git a/Source/kwsys/FStream.hxx.in b/Source/kwsys/FStream.hxx.in index 681e4d8..248b0cb 100644