vk/entry_points:: fix mingw build

MinGW does not play well either with weak symbols and crashes at runtime without a trace
fixes: 7e833713d8

Reviewed-by: Danylo Piliaiev <dpiliaiev@igalia.com>
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22474>
This commit is contained in:
Michel Zou
2023-04-13 18:41:39 +02:00
committed by Marge Bot
parent 6bc2dce228
commit cb282b6a81

View File

@@ -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