util/ralloc: fix ralloc alignment on Win64
authorJesse Natalie <jenatali@ntdev.microsoft.com>
Mon, 27 Jan 2020 17:41:42 +0000 (09:41 -0800)
committerMarge Bot <eric+marge@anholt.net>
Tue, 21 Apr 2020 21:56:21 +0000 (21:56 +0000)
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4648>

src/util/ralloc.c

index 0d20223d98f8a9d8c128913267b46ea503fb8244..f36f8bf365425a2c7a18d95865d9f912f9d21234 100644 (file)
@@ -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