More mingw fixes

This commit is contained in:
vitaut 2015-03-12 08:57:25 -07:00
parent 82a3e78e04
commit 97b33fe069
2 changed files with 2 additions and 2 deletions

View File

@ -98,7 +98,7 @@ void fmt::BufferedFile::close() {
throw SystemError(errno, "cannot close file");
}
int (fmt::BufferedFile::fileno)() const {
int fmt::BufferedFile::fileno() const {
int fd = FMT_POSIX_CALL(fileno(file_));
if (fd == -1)
throw SystemError(errno, "cannot get file descriptor");

View File

@ -46,7 +46,7 @@
#endif
#ifndef FMT_POSIX
# ifdef _WIN32
# if defined(_WIN32) && !defined(__MINGW32__)
// Fix warnings about deprecated symbols.
# define FMT_POSIX(call) _##call
# else