Woraround for braindamaged versions of MinGW

This commit is contained in:
vitaut 2015-03-12 06:48:14 -07:00
parent 6dd532b456
commit 93cfe9951b

View File

@ -188,7 +188,9 @@ public:
// Returns the pointer to a FILE object representing this file.
FILE *get() const FMT_NOEXCEPT { return file_; }
int fileno() const;
// We place parentheses around fileno to workaround a bug in some versions
// of MinGW that define fileno as a macro.
int (fileno)() const;
void print(fmt::StringRef format_str, const ArgList &args) {
fmt::print(file_, format_str, args);