From 969914b2b526a8017dfc85efa6a23a8453d17666 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 29 Dec 2022 21:01:16 -0700 Subject: [PATCH] [view] Clean up includes --- util/ansi-print.hh | 5 ----- util/helper-cairo.hh | 4 ++++ util/options.hh | 3 --- 3 files changed, 4 insertions(+), 8 deletions(-) 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