From 3f8f1cbaba5cc28930917880be070a46671d000e Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Fri, 26 Dec 2008 19:20:35 +0100 Subject: [PATCH] fdstream.cc: don't (re)declare fileno if it's a macro It's a macro on MinGW. --- fdstream.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fdstream.cc b/fdstream.cc index 7d20f76..82599f8 100644 --- a/fdstream.cc +++ b/fdstream.cc @@ -29,7 +29,9 @@ // not in (in a POSIX conforming implementation they will be declared in // and will be linkable from the C library) extern "C" std::FILE* fdopen(int, const char*); +#ifndef fileno extern "C" int fileno(std::FILE*); +#endif fdoutbuf::fdoutbuf(): stream_p(0) { error_condition.error = false; -- 2.11.4.GIT