Avoid gcc warning on mingw.
authorBruno Haible <bruno@clisp.org>
Wed, 8 Jun 2005 19:32:15 +0000 (19:32 +0000)
committerBruno Haible <bruno@clisp.org>
Wed, 8 Jun 2005 19:32:15 +0000 (19:32 +0000)
lib/ChangeLog
lib/binary-io.h

index 29cc796..72da16c 100644 (file)
@@ -1,5 +1,10 @@
 2005-06-08  Bruno Haible  <bruno@clisp.org>
 
+       * binary-io.h (fileno): Undefine before defining it. Avoids a gcc
+       warning on mingw.
+
+2005-06-08  Bruno Haible  <bruno@clisp.org>
+
        * csharpcomp.h: New file, from GNU gettext.
        * csharpcomp.c: New file, from GNU gettext.
        * csharpcomp.sh.in: New file, from GNU gettext.
index d9892d3..d9748ee 100644 (file)
@@ -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__