rationnalize includes a lot:
[apps/madmutt.git] / lib-ui / resize.c
index 82fe316..74cd58c 100644 (file)
@@ -7,29 +7,20 @@
  * please see the file GPL in the top level source directory.
  */
 
-#if HAVE_CONFIG_H
-# include "config.h"
-#endif
+#include <lib-lib/lib-lib.h>
 
 #if defined(USE_SLANG_CURSES) || defined(HAVE_RESIZETERM)
 
-#include <lib-ui/curses.h>
-
-#include "mutt.h"
-
-#include <stdlib.h>
-#include <unistd.h>
-#include <fcntl.h>
 #include <termios.h>
-
 #ifdef HAVE_SYS_IOCTL_H
-#include <sys/ioctl.h>
-#else
-# ifdef HAVE_IOCTL_H
-# include <ioctl.h>
-# endif
+#  include <sys/ioctl.h>
+#elif defined(HAVE_IOCTL_H)
+#  include <ioctl.h>
 #endif
 
+#include <lib-ui/curses.h>
+#include "mutt.h"
+
 /* this routine should be called after receiving SIGWINCH */
 void mutt_resize_screen (void)
 {