mingw: fix redeclared stat/fstat

This commit is contained in:
Craig Carnell 2025-12-08 19:17:22 +00:00
parent bfea29cd33
commit 372d35b033

View File

@ -7,6 +7,9 @@
#include <optional>
#endif
#include <string>
#ifdef __MINGW32__
#include <sys/stat.h>
#endif
#ifndef _WIN32
@ -27,8 +30,10 @@
#define fseeko _fseeki64
#define ftello _ftelli64
#define atoll _atoi64
#ifndef __MINGW32__
#define stat _stat64
#define fstat _fstat64
#endif
#define fileno _fileno
extern "C" {