Mercurial > hg > octave-nkf > gnulib-hg
changeset 4142:1e52316e571b
Undefine and define-away `const' after inclusion
of errno.h, not before. Suggestion from Bruno Haible.
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Wed, 08 Jan 2003 15:41:33 +0000 |
parents | 5b1de07e85ec |
children | 15e576739c3c |
files | lib/full-write.c |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/full-write.c +++ b/lib/full-write.c @@ -20,6 +20,11 @@ # include <config.h> #endif +#include <errno.h> +#ifndef errno +extern int errno; +#endif + #ifdef FULL_READ # include "full-read.h" # include "safe-read.h" @@ -34,11 +39,6 @@ # define full_rw full_write #endif -#include <errno.h> -#ifndef errno -extern int errno; -#endif - #ifdef FULL_READ /* Set errno to zero upon EOF. */ # define ZERO_BYTE_TRANSFER_ERRNO 0