Mercurial > hg > octave-lojdl > gnulib-hg
changeset 4608:a079d84287d0
Make it work with MSVC.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Mon, 25 Aug 2003 11:04:49 +0000 |
parents | e534e6ffb140 |
children | 6446dccc56f6 |
files | lib/ChangeLog lib/binary-io.h |
diffstat | 2 files changed, 11 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,8 @@ +2003-08-24 Bruno Haible <bruno@clisp.org> + + * binary-io.h: Include <stdio.h>, to avoid a compilation error when + MSVC7 <stdio.h> is included later. + 2003-08-20 Bruno Haible <bruno@clisp.org> * progname.h: New file, from GNU gettext.
--- a/lib/binary-io.h +++ b/lib/binary-io.h @@ -18,9 +18,14 @@ #ifndef _BINARY_H #define _BINARY_H -#include <fcntl.h> /* For systems that distinguish between text and binary I/O. O_BINARY is usually declared in <fcntl.h>. */ +#include <fcntl.h> + +/* The MSVC7 <stdio.h> doesn't like to be included after '#define fileno ...', + so we include it here first. */ +#include <stdio.h> + #if !defined O_BINARY && defined _O_BINARY /* For MSC-compatible compilers. */ # define O_BINARY _O_BINARY