mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 17:50:12 +01:00
vulkan: Fix windows api conflict
Closes #4247 Acked-by: Jason Ekstrand <jason@jlekstrand.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8956>
This commit is contained in:
parent
7ea69f40d8
commit
e487ae1b99
1 changed files with 10 additions and 0 deletions
|
|
@ -195,6 +195,16 @@ TEMPLATE_C = Template(COPYRIGHT + """\
|
|||
#include "util/macros.h"
|
||||
#include "string.h"
|
||||
|
||||
/* Windows api conflict */
|
||||
#ifdef _WIN32
|
||||
#ifdef CreateSemaphore
|
||||
#undef CreateSemaphore
|
||||
#endif
|
||||
#ifdef CreateEvent
|
||||
#undef CreateEvent
|
||||
#endif
|
||||
#endif
|
||||
|
||||
<%def name="load_dispatch_table(type, VkType, ProcAddr, entrypoints)">
|
||||
void
|
||||
vk_${type}_dispatch_table_load(struct vk_${type}_dispatch_table *table,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue