mirror of
				https://gitlab.gnome.org/GNOME/glib.git
				synced 2025-10-31 00:12:19 +01:00 
			
		
		
		
	gvariant: Fix suffix alignment on 32-bit machines
This fixes commit 0b083e3d8c. The static assertion added in that commit
fails on 32-bit machines.
Signed-off-by: Philip Withnall <pwithnall@gnome.org>
			
			
This commit is contained in:
		| @@ -76,7 +76,11 @@ struct _GVariant | |||||||
|   gatomicrefcount ref_count; |   gatomicrefcount ref_count; | ||||||
|   gsize depth; |   gsize depth; | ||||||
|  |  | ||||||
|  | #if g_macro__has_attribute(aligned) | ||||||
|  |   guint8 suffix[] __attribute__((aligned(8))); | ||||||
|  | #else | ||||||
|   guint8 suffix[]; |   guint8 suffix[]; | ||||||
|  | #endif | ||||||
| }; | }; | ||||||
|  |  | ||||||
| /* Ensure our suffix data aligns to largest guaranteed offset | /* Ensure our suffix data aligns to largest guaranteed offset | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user