From: Bruno Haible Date: Sun, 24 Aug 2003 17:37:42 +0000 (+0000) Subject: Avoid a compilation error on Windows. X-Git-Tag: v0.13~315 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=471495743a4f7bb3030519482388805a87868a29;p=thirdparty%2Fgettext.git Avoid a compilation error on Windows. --- diff --git a/gettext-tools/lib/ChangeLog b/gettext-tools/lib/ChangeLog index 03fc5bbee..e80376242 100644 --- a/gettext-tools/lib/ChangeLog +++ b/gettext-tools/lib/ChangeLog @@ -1,3 +1,8 @@ +2003-08-24 Bruno Haible + + * binary-io.h: Include , to avoid a compilation error when + MSVC7 is included later. + 2003-08-24 Bruno Haible * error.c: Use when compiling with MSVC, even though it diff --git a/gettext-tools/lib/binary-io.h b/gettext-tools/lib/binary-io.h index ed74c06f2..2229f84c7 100644 --- a/gettext-tools/lib/binary-io.h +++ b/gettext-tools/lib/binary-io.h @@ -18,9 +18,14 @@ #ifndef _BINARY_H #define _BINARY_H -#include /* For systems that distinguish between text and binary I/O. O_BINARY is usually declared in . */ +#include + +/* The MSVC7 doesn't like to be included after '#define fileno ...', + so we include it here first. */ +#include + #if !defined O_BINARY && defined _O_BINARY /* For MSC-compatible compilers. */ # define O_BINARY _O_BINARY