From c3d8942f1dc6ac4a48a09afa12cbea7842892f7d Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Mon, 25 Aug 2003 11:04:49 +0000 Subject: [PATCH] Make it work with MSVC. --- lib/ChangeLog | 5 +++++ lib/binary-io.h | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/lib/ChangeLog b/lib/ChangeLog index 6371251a0..e37756fb6 100644 --- a/lib/ChangeLog +++ b/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-20 Bruno Haible * progname.h: New file, from GNU gettext. diff --git a/lib/binary-io.h b/lib/binary-io.h index ed74c06f2..2229f84c7 100644 --- a/lib/binary-io.h +++ b/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 -- 2.11.0