diff options
author | Jim Meyering <jim@meyering.net> | 2000-10-30 15:58:59 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2000-10-30 15:58:59 +0000 |
commit | ad3a1fbb8289be18fae8734c428df5081c560e7c (patch) | |
tree | d988743b2d5b3707a2bd1b17abb6a7f74512883b /src | |
parent | 82cd6af9bca49b1818a17a61c01e0b7f3b0cbc22 (diff) | |
download | coreutils-ad3a1fbb8289be18fae8734c428df5081c560e7c.tar.xz |
Include "system.h" after wctype.h (not before) to avoid
a compilation error on Solaris 5.5.1 systems.
Diffstat (limited to 'src')
-rw-r--r-- | src/wc.c | 15 |
1 files changed, 10 insertions, 5 deletions
@@ -26,11 +26,6 @@ #include <stdio.h> #include <getopt.h> #include <sys/types.h> -#include "system.h" -#include "closeout.h" -#include "error.h" -#include "human.h" -#include "safe-read.h" /* Get mbstate_t, mbrtowc(), wcwidth(). */ #if HAVE_WCHAR_H @@ -45,6 +40,16 @@ # define iswprint(wc) 1 #endif +/* Include this after wctype.h so that we `#undef' ISPRINT + (from Solaris's euc.h, from widec.h, from wctype.h) before + redefining and using it. */ +#include "system.h" + +#include "closeout.h" +#include "error.h" +#include "human.h" +#include "safe-read.h" + /* Some systems, like BeOS, have multibyte encodings but lack mbstate_t. */ #if HAVE_MBRTOWC && defined mbstate_t # define mbrtowc(pwc, s, n, ps) (mbrtowc) (pwc, s, n, 0) |