aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/swr
diff options
context:
space:
mode:
authorKrzysztof Raszkowski <[email protected]>2020-05-22 17:29:01 +0200
committerKrzysztof Raszkowski <[email protected]>2020-05-22 17:34:26 +0200
commit09fc9c5f6ca02e5eebc5a11771c2cc1a9df5fc7e (patch)
treebc68d3217453c50414bc6fe0d22e80655442405f /src/gallium/drivers/swr
parent40255831230a6dba45b09ab98d5b626a5bdb18ef (diff)
gallium/swr: Fix building swr with MSVC
Fix building swr with MSVC by turning off UNICODE before including windows.h. Reviewed-by: Jan Zielinski <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5166>
Diffstat (limited to 'src/gallium/drivers/swr')
-rw-r--r--src/gallium/drivers/swr/rasterizer/common/os.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/swr/rasterizer/common/os.h b/src/gallium/drivers/swr/rasterizer/common/os.h
index a52bc0e0db6..bda114d64e2 100644
--- a/src/gallium/drivers/swr/rasterizer/common/os.h
+++ b/src/gallium/drivers/swr/rasterizer/common/os.h
@@ -33,9 +33,11 @@
#define SWR_VISIBLE __declspec(dllexport)
#ifndef NOMINMAX
+#undef UNICODE
#define NOMINMAX
#include <windows.h>
#undef NOMINMAX
+#define UNICODE
#else
#include <windows.h>
#endif