diff --git a/util/ansi-print.hh b/util/ansi-print.hh index ffca15ee6..aa24fd012 100644 --- a/util/ansi-print.hh +++ b/util/ansi-print.hh @@ -35,12 +35,7 @@ #include #include #include -#include #include -#include -#ifdef HAVE_UNISTD_H -#include /* for isatty() */ -#endif #if defined (_MSC_VER) && (_MSC_VER < 1800) static inline long int diff --git a/util/helper-cairo.hh b/util/helper-cairo.hh index 3505794eb..c80872944 100644 --- a/util/helper-cairo.hh +++ b/util/helper-cairo.hh @@ -33,6 +33,10 @@ # include "helper-cairo-ft.hh" #endif +#ifdef HAVE_UNISTD_H +#include /* for isatty() */ +#endif + #include #include #include diff --git a/util/options.hh b/util/options.hh index 790650bfd..39c537adb 100644 --- a/util/options.hh +++ b/util/options.hh @@ -38,9 +38,6 @@ #include #include #include -#ifdef HAVE_UNISTD_H -#include /* for isatty() */ -#endif #if defined(_WIN32) || defined(__CYGWIN__) #include /* for setmode() under Windows */ #endif