From cb282b6a8135c8c4222d7683f5122ae35602158d Mon Sep 17 00:00:00 2001 From: Michel Zou Date: Thu, 13 Apr 2023 18:41:39 +0200 Subject: [PATCH] vk/entry_points:: fix mingw build MinGW does not play well either with weak symbols and crashes at runtime without a trace fixes: 7e833713d83087934221cd47ece49e87199a00d1 Reviewed-by: Danylo Piliaiev Cc: mesa-stable Part-of: --- src/vulkan/util/vk_entrypoints_gen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vulkan/util/vk_entrypoints_gen.py b/src/vulkan/util/vk_entrypoints_gen.py index 2ec13a0..6e74a68 100644 --- a/src/vulkan/util/vk_entrypoints_gen.py +++ b/src/vulkan/util/vk_entrypoints_gen.py @@ -50,7 +50,7 @@ extern "C" { % endif /* clang wants function declarations in the header to have weak attribute */ -#ifndef _MSC_VER +#if !defined(_MSC_VER) && !defined(__MINGW32__) #define ATTR_WEAK __attribute__ ((weak)) #else #define ATTR_WEAK -- 2.7.4