MinGW-64 build and UNICODE paths

If I understand correctly the following lines make not possible to work with UNICODE paths on windows (built with MinGW-64 compiler)

#if defined(_WIN32) && !defined(__MINGW32__) && defined(_MSC_VER) && (_MSC_VER > 1310)
int LibRaw::open_file(const wchar_t *fname, INT64 max_buf_size)

Can __MINGW32__ macro be narrowed to __MINGW64__?

But it looks like that mingw64 std library has wide char file i/o functions (_wfopen).


I found std::filebuf usage

I found std::filebuf usage later. So, it looks like there is no easy way to handle Unicode paths in mingw64 builds :(.

You may implement own

You may implement own datastream (e.g. based on LibRaw_bigfile_datastream which uses FILE* I/O) and own open_wfile() method.

-- Alex Tutubalin @LibRaw LLC