Hey, when _FILE_OFFSET_BITS is defined (ideally Windows code shouldn't depend on it, but here we are) mingw-w64 does this:
https://github.com/mingw-w64/mingw-w64/blob/898141aa957b99812f2f4d2cf89255798d578d54/mingw-w64-headers/crt/sys/stat.h#L279 Which replaces various things called "stat" in some projects and depending on the include order I guess leads to build errors: libtorrent: * error: https://gist.github.com/lazka/ebbd33274dc7a0f2521d3a639d96589f * https://github.com/arvidn/libtorrent/blob/95afba30e9acfd8411076a0b05f7ca69bf33b9bb/include/libtorrent/peer_connection_interface.hpp#L47 In libtorrent I worked around it by not defining _FILE_OFFSET_BITS on Windows (it didn't depend on it anyway) https://github.com/msys2/MINGW-packages/blob/53b559893d92bc71767ddaa002c08e898307712c/mingw-w64-libtorrent-rasterbar/0001-no-offset-64.patch Qt6: QFileInfo::stat() in https://code.qt.io/cgit/qt/qtbase.git/tree/src/corelib/io/qfileinfo.h#n192 In qt6 it's not so easy since it's a public header, we undef stat there in some cases. I'm wondering if there is anything mingw-w64 could do to prevent/improve this? thanks _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
