mirror of
https://github.com/fmtlib/fmt.git
synced 2025-12-15 18:18:27 +01:00
Workaround mingw bugs
This commit is contained in:
@@ -175,7 +175,7 @@ int test::fclose(FILE *stream) {
|
||||
return ::fclose(stream);
|
||||
}
|
||||
|
||||
int test::fileno(FILE *stream) {
|
||||
int (test::fileno)(FILE *stream) {
|
||||
EMULATE_EINTR(fileno, -1);
|
||||
return ::FMT_POSIX(fileno(stream));
|
||||
}
|
||||
|
||||
@@ -72,8 +72,7 @@ int pipe(int *pfds, unsigned psize, int textmode);
|
||||
|
||||
FILE *fopen(const char *filename, const char *mode);
|
||||
int fclose(FILE *stream);
|
||||
int fileno(FILE *stream);
|
||||
|
||||
int (fileno)(FILE *stream);
|
||||
} // namespace test
|
||||
|
||||
#define FMT_SYSTEM(call) test::call
|
||||
|
||||
Reference in New Issue
Block a user