From a7742484349a1a75d6b3767e296137f2cd94558c Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Wed, 8 Jun 2005 19:32:15 +0000 Subject: [PATCH] Avoid gcc warning on mingw. --- lib/ChangeLog | 5 +++++ lib/binary-io.h | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/ChangeLog b/lib/ChangeLog index 29cc7968bc..72da16c277 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,8 @@ +2005-06-08 Bruno Haible + + * binary-io.h (fileno): Undefine before defining it. Avoids a gcc + warning on mingw. + 2005-06-08 Bruno Haible * csharpcomp.h: New file, from GNU gettext. diff --git a/lib/binary-io.h b/lib/binary-io.h index d9892d33b4..d9748ee252 100644 --- a/lib/binary-io.h +++ b/lib/binary-io.h @@ -1,5 +1,5 @@ /* Binary mode I/O. - Copyright (C) 2001, 2003 Free Software Foundation, Inc. + Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -39,6 +39,7 @@ #if O_BINARY # if !(defined __EMX__ || defined __DJGPP__ || defined __CYGWIN__) # define setmode _setmode +# undef fileno # define fileno _fileno # endif # if defined __DJGPP__ || defined __CYGWIN__ -- 2.30.2