mirror of
https://github.com/fmtlib/fmt.git
synced 2025-07-30 02:37:36 +02:00
Workaround mingw bugs
This commit is contained in:
@ -175,7 +175,7 @@ int test::fclose(FILE *stream) {
|
|||||||
return ::fclose(stream);
|
return ::fclose(stream);
|
||||||
}
|
}
|
||||||
|
|
||||||
int test::fileno(FILE *stream) {
|
int (test::fileno)(FILE *stream) {
|
||||||
EMULATE_EINTR(fileno, -1);
|
EMULATE_EINTR(fileno, -1);
|
||||||
return ::FMT_POSIX(fileno(stream));
|
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);
|
FILE *fopen(const char *filename, const char *mode);
|
||||||
int fclose(FILE *stream);
|
int fclose(FILE *stream);
|
||||||
int fileno(FILE *stream);
|
int (fileno)(FILE *stream);
|
||||||
|
|
||||||
} // namespace test
|
} // namespace test
|
||||||
|
|
||||||
#define FMT_SYSTEM(call) test::call
|
#define FMT_SYSTEM(call) test::call
|
||||||
|
Reference in New Issue
Block a user