From: Jesse Natalie Date: Mon, 27 Jan 2020 17:41:42 +0000 (-0800) Subject: util/ralloc: fix ralloc alignment on Win64 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a842dc154d3cac5af7ff30f7d0501ae42a1d1d7b;p=mesa.git util/ralloc: fix ralloc alignment on Win64 Acked-by: Alyssa Rosenzweig Part-of: --- diff --git a/src/util/ralloc.c b/src/util/ralloc.c index 0d20223d98f..f36f8bf3654 100644 --- a/src/util/ralloc.c +++ b/src/util/ralloc.c @@ -53,7 +53,11 @@ _CRTIMP int _vscprintf(const char *format, va_list argptr); */ struct #ifdef _MSC_VER +#if _WIN64 +__declspec(align(16)) +#else __declspec(align(8)) +#endif #elif defined(__LP64__) __attribute__((aligned(16))) #else