From: Matthias Clasen Date: Sun, 25 Sep 2011 04:42:37 +0000 (-0400) Subject: Move includes to the top of the file X-Git-Tag: 2.31.0~358 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=db04f59780a40ada3c7abb77ca39652c35cfa9e4;p=platform%2Fupstream%2Fglib.git Move includes to the top of the file --- diff --git a/glib/gthread-posix.c b/glib/gthread-posix.c index ce04ce4..a7b0a23 100644 --- a/glib/gthread-posix.c +++ b/glib/gthread-posix.c @@ -42,14 +42,28 @@ #include "config.h" #include "gthread.h" + #include "gthreadprivate.h" #include "gslice.h" +#include "gmessages.h" +#include "gstrfuncs.h" -#include #include +#include #include #include -#include +#include + +#ifdef HAVE_SYS_TIME_H +# include +#endif +#ifdef HAVE_UNISTD_H +# include +#endif +#ifdef HAVE_SCHED_H +#include +#endif + static void g_thread_abort (gint status, @@ -947,23 +961,6 @@ g_private_set (GPrivate *key, /* {{{1 GThread */ -#include "glib.h" -#include "gthreadprivate.h" - -#include -#include -#include -#ifdef HAVE_SYS_TIME_H -# include -#endif -#ifdef HAVE_UNISTD_H -# include -#endif - -#ifdef HAVE_SCHED_H -#include -#endif - #define posix_check_err(err, name) G_STMT_START{ \ int error = (err); \ if (error) \ @@ -974,8 +971,6 @@ g_private_set (GPrivate *key, #define posix_check_cmd(cmd) posix_check_err (cmd, #cmd) -#define G_MUTEX_SIZE (sizeof (pthread_mutex_t)) - void g_system_thread_create (GThreadFunc thread_func, gpointer arg,