zink: Fix win32 build
authorMichel Zou <xantares09@hotmail.com>
Mon, 14 Jun 2021 08:14:32 +0000 (10:14 +0200)
committerMarge Bot <eric+marge@anholt.net>
Mon, 14 Jun 2021 19:48:36 +0000 (19:48 +0000)
Reviewed-by: Hoe Hao Cheng <haochengho12907@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11338>

src/vulkan/util/vk_dispatch_table_gen.py

index 0966bc5..9caba30 100644 (file)
@@ -55,6 +55,7 @@ TEMPLATE_H = Template(COPYRIGHT + """\
 
 /* Windows api conflict */
 #ifdef _WIN32
+#include <windows.h>
 #ifdef CreateSemaphore
 #undef CreateSemaphore
 #endif