changeset 15801:94867b2f38f5

Re-order includes to fix this compile error: In file included from gntwm.c:9: gntwm.h:166: error: syntax error before 'gnt_wm_get_idle_time' gntwm.h:166: warning: data definition has no type or storage class gntwm.c:1218: error: conflicting types for 'gnt_wm_get_idle_time' gntwm.h:166: error: previous declaration of 'gnt_wm_get_idle_time' was here
author Stu Tomlinson <stu@nosnilmot.com>
date Sat, 17 Mar 2007 16:48:25 +0000
parents 682022b8a129
children 874d55d836bc
files console/libgnt/gntmain.c console/libgnt/gntwm.c console/libgnt/wms/s.c
diffstat 3 files changed, 10 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/console/libgnt/gntmain.c	Fri Mar 16 20:53:24 2007 +0000
+++ b/console/libgnt/gntmain.c	Sat Mar 17 16:48:25 2007 +0000
@@ -7,6 +7,9 @@
 
 #include <gmodule.h>
 
+#include <sys/types.h>
+#include <sys/wait.h>
+
 #include "gnt.h"
 #include "gntbox.h"
 #include "gntcolors.h"
@@ -29,9 +32,6 @@
 #include <ctype.h>
 #include <errno.h>
 
-#include <sys/types.h>
-#include <sys/wait.h>
-
 /**
  * Notes: Interesting functions to look at:
  * 	scr_dump, scr_init, scr_restore: for workspaces
--- a/console/libgnt/gntwm.c	Fri Mar 16 20:53:24 2007 +0000
+++ b/console/libgnt/gntwm.c	Sat Mar 17 16:48:25 2007 +0000
@@ -5,6 +5,10 @@
 
 #include "config.h"
 
+#include <ctype.h>
+#include <stdlib.h>
+#include <string.h>
+
 #include "gntwm.h"
 #include "gntstyle.h"
 #include "gntmarshal.h"
@@ -15,10 +19,6 @@
 #include "gnttree.h"
 #include "gntutils.h"
 
-#include <ctype.h>
-#include <stdlib.h>
-#include <string.h>
-
 #define IDLE_CHECK_INTERVAL 5 /* 5 seconds */
 
 enum
--- a/console/libgnt/wms/s.c	Fri Mar 16 20:53:24 2007 +0000
+++ b/console/libgnt/wms/s.c	Sat Mar 17 16:48:25 2007 +0000
@@ -1,3 +1,6 @@
+#include <string.h>
+#include <sys/types.h>
+
 #include "gnt.h"
 #include "gntbox.h"
 #include "gntmenu.h"
@@ -8,8 +11,6 @@
 
 #include "blist.h"
 
-#include <string.h>
-
 #define TYPE_S				(s_get_gtype())
 
 typedef struct _S