mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-25 15:21:54 +00:00
Fix posix-test on MinGW
This commit is contained in:
parent
2da08f21dd
commit
3913f29ad7
@ -79,7 +79,13 @@ int test::open(const char *path, int oflag, int mode) {
|
||||
return ::open(path, oflag, mode);
|
||||
}
|
||||
|
||||
static off_t max_file_size() { return std::numeric_limits<off_t>::max(); }
|
||||
#ifdef _WIN32
|
||||
typedef fmt::LongLong FileSize;
|
||||
#else
|
||||
typedef off_t FileSize;
|
||||
#endif
|
||||
|
||||
static FileSize max_file_size() { return std::numeric_limits<FileSize>::max(); }
|
||||
|
||||
int test::fstat(int fd, struct stat *buf) {
|
||||
int result = ::fstat(fd, buf);
|
||||
|
Loading…
Reference in New Issue
Block a user