mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-03 17:56:17 +01:00
glib-private.h: add _glib_alignof
This commit is contained in:
parent
8f6be404cb
commit
476aa9ae46
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user