From a842dc154d3cac5af7ff30f7d0501ae42a1d1d7b Mon Sep 17 00:00:00 2001 From: Jesse Natalie Date: Mon, 27 Jan 2020 09:41:42 -0800 Subject: [PATCH] util/ralloc: fix ralloc alignment on Win64 Acked-by: Alyssa Rosenzweig Part-of: --- src/util/ralloc.c | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.30.2