From: Simon McVittie Date: Fri, 16 Nov 2012 12:49:15 +0000 (+0000) Subject: glib-private.h: add _glib_alignof X-Git-Tag: 2.39.4~111 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=476aa9ae46098f1090fc52ab2c10859fa8bb5495;p=platform%2Fupstream%2Fglib.git glib-private.h: add _glib_alignof --- diff --git a/glib/glib-private.h b/glib/glib-private.h index 44cbf3d94..6195ad975 100644 --- a/glib/glib-private.h +++ b/glib/glib-private.h @@ -23,6 +23,12 @@ #include #include "gwakeup.h" +#if defined(__GNUC__) +# define _g_alignof(type) (__alignof__ (type)) +#else +# define _g_alignof(type) (G_STRUCT_OFFSET (struct { char a; type b; }, b)) +#endif + GMainContext * g_get_worker_context (void); gboolean g_check_setuid (void); GMainContext * g_main_context_new_with_next_id (guint next_id);