mirror of
				https://gitlab.gnome.org/GNOME/glib.git
				synced 2025-11-04 01:58:54 +01:00 
			
		
		
		
	glib-private.h: add _glib_alignof
This commit is contained in:
		
				
					committed by
					
						
						Matthias Clasen
					
				
			
			
				
	
			
			
			
						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);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user