comparison finch/libgnt/gntwm.c @ 22378:128e06a1e1fc

Fix building with glib < 2.6
author Stu Tomlinson <stu@nosnilmot.com>
date Fri, 29 Feb 2008 13:45:05 +0000
parents 0503cd74cb56
children 2ded253bcdbb
comparison
equal deleted inserted replaced
22377:a6a24fabf855 22378:128e06a1e1fc
30 #define _XOPEN_SOURCE_EXTENDED 30 #define _XOPEN_SOURCE_EXTENDED
31 #endif 31 #endif
32 #endif 32 #endif
33 33
34 #include <glib.h> 34 #include <glib.h>
35 #include <glib/gstdio.h> 35 #if GLIB_CHECK_VERSION(2,6,0)
36 # include <glib/gstdio.h>
37 #else
38 # include <sys/types.h>
39 # include <sys/stat.h>
40 # include <fcntl.h>
41 # define g_fopen open
42 #endif
36 #include <ctype.h> 43 #include <ctype.h>
37 #include <gmodule.h> 44 #include <gmodule.h>
38 #include <stdlib.h> 45 #include <stdlib.h>
39 #include <string.h> 46 #include <string.h>
40 #include <time.h> 47 #include <time.h>