glib-private.h: add _glib_alignof

This commit is contained in:
Simon McVittie 2012-11-16 12:49:15 +00:00 committed by Matthias Clasen
parent 8f6be404cb
commit 476aa9ae46

View File

@ -23,6 +23,12 @@
#include <glib.h>
#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);