mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 13:48:06 +02:00
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:
parent
4025583123
commit
09fc9c5f6c
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue