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:
Chun-wei Fan 2024-10-01 17:14:41 +08:00
parent c96cd22cf9
commit 1b9d3964f5

View File

@ -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