diff --git a/src/vulkan/util/vk_entrypoints_gen.py b/src/vulkan/util/vk_entrypoints_gen.py index 2ec13a08423..6e74a6866a6 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