gallium/swr: Fix building swr with MSVC
Fix building swr with MSVC by turning off UNICODE before including windows.h. Reviewed-by: Jan Zielinski <jan.zielinski@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5166>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user