While compiling with mingw an error will be thrown at line 128 in other.h "return (stat(name, &buffer) == 0);" unless the sys/stat.h header is included. Doing a quick test in godbolt's compilerexplorer msvc has this header as well and likely it's just implicitly included in msvc https://gcc.godbolt.org/z/vb549MxrG
While compiling with mingw an error will be thrown at line 128 in other.h "return (stat(name, &buffer) == 0);" unless the sys/stat.h header is included. Doing a quick test in godbolt's compilerexplorer msvc has this header as well and likely it's just implicitly included in msvc https://gcc.godbolt.org/z/vb549MxrG