]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Portability to Cygwin.
authorBruno Haible <bruno@clisp.org>
Mon, 20 Oct 2003 09:59:30 +0000 (09:59 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:11:04 +0000 (12:11 +0200)
gettext-tools/lib/ChangeLog
gettext-tools/lib/binary-io.h

index 7ebf14910a84783203426d64b949218774503bfa..8cab22788be8efd70dfed42c8c3d6208046cdcb7 100644 (file)
@@ -1,3 +1,7 @@
+2003-10-17  Bruno Haible  <bruno@clisp.org>
+
+       * binary-io.h: Avoid warnings on Cygwin.
+
 2003-10-09  Bruno Haible  <bruno@clisp.org>
 
        * xalloc.h: Renamed from xmalloc.h.
index 3ff2a375f434a575ae8afb908511ec0d9bae3a74..2845ee73e62c2f7859a84a0b5850c362d72764a1 100644 (file)
 # undef O_TEXT
 #endif
 #if O_BINARY
-# if !(defined __EMX__ || defined __DJGPP__)
+# if !(defined __EMX__ || defined __DJGPP__ || defined __CYGWIN__)
 #  define setmode _setmode
 #  define fileno _fileno
 # endif
-# ifdef __DJGPP__
+# if defined __DJGPP__ || defined __CYGWIN__
 #  include <io.h> /* declares setmode() */
+# endif
+# ifdef __DJGPP__
 #  include <unistd.h> /* declares isatty() */
 #  /* Avoid putting stdin/stdout in binary mode if it is connected to the
 #     console, because that would make it impossible for the user to