mirror of
https://github.com/fmtlib/fmt.git
synced 2025-07-30 18:57:34 +02:00
Workaround a bug in the definition of fstat on some versions of MinGW
This commit is contained in:
@ -87,7 +87,7 @@ typedef off_t FileSize;
|
|||||||
|
|
||||||
static FileSize max_file_size() { return std::numeric_limits<FileSize>::max(); }
|
static FileSize max_file_size() { return std::numeric_limits<FileSize>::max(); }
|
||||||
|
|
||||||
int test::fstat(int fd, struct stat *buf) {
|
int (test::fstat)(int fd, struct stat *buf) {
|
||||||
int result = ::fstat(fd, buf);
|
int result = ::fstat(fd, buf);
|
||||||
if (fstat_sim == MAX_SIZE)
|
if (fstat_sim == MAX_SIZE)
|
||||||
buf->st_size = max_file_size();
|
buf->st_size = max_file_size();
|
||||||
|
Reference in New Issue
Block a user