mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-02 11:28:20 +00:00
Workaround mingw bugs
This commit is contained in:
parent
f49ab8e4a9
commit
a53ac7ad5c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user