From: Bruno Haible Date: Mon, 20 Oct 2003 09:59:30 +0000 (+0000) Subject: Portability to Cygwin. X-Git-Tag: v0.13~207 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b0ae598c7bb6dc6cd0ed4732fd699f4d52a0da2;p=thirdparty%2Fgettext.git Portability to Cygwin. --- diff --git a/gettext-tools/lib/ChangeLog b/gettext-tools/lib/ChangeLog index 7ebf14910..8cab22788 100644 --- a/gettext-tools/lib/ChangeLog +++ b/gettext-tools/lib/ChangeLog @@ -1,3 +1,7 @@ +2003-10-17 Bruno Haible + + * binary-io.h: Avoid warnings on Cygwin. + 2003-10-09 Bruno Haible * xalloc.h: Renamed from xmalloc.h. diff --git a/gettext-tools/lib/binary-io.h b/gettext-tools/lib/binary-io.h index 3ff2a375f..2845ee73e 100644 --- a/gettext-tools/lib/binary-io.h +++ b/gettext-tools/lib/binary-io.h @@ -37,12 +37,14 @@ # 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 /* declares setmode() */ +# endif +# ifdef __DJGPP__ # include /* 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