mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-06 09:26:17 +01:00
gvariant-core.c: Fix suffix alignment on 32-bit MSVC builds
With a similar rationale to commit d50102f2
, this avoids the static
assert from failing on 32-bit Visual Studio builds.
This commit is contained in:
parent
c96cd22cf9
commit
1b9d3964f5
@ -78,6 +78,8 @@ struct _GVariant
|
||||
|
||||
#if g_macro__has_attribute(aligned)
|
||||
guint8 suffix[] __attribute__((aligned(8)));
|
||||
#elif defined _MSC_VER
|
||||
__declspec(align (8)) guint8 suffix[];
|
||||
#else
|
||||
guint8 suffix[];
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user