Commit 48132153 authored by Krzysztof Raszkowski's avatar Krzysztof Raszkowski
Browse files

gallium/swr: Fix building swr with MSVC



Fix building swr with MSVC by turning off
UNICODE before including windows.h.
Reviewed-by: Jan Zielinski's avatarJan Zielinski <jan.zielinski@intel.com>
parent 40255831
Pipeline #150295 waiting for manual action with stages
...@@ -33,9 +33,11 @@ ...@@ -33,9 +33,11 @@
#define SWR_VISIBLE __declspec(dllexport) #define SWR_VISIBLE __declspec(dllexport)
#ifndef NOMINMAX #ifndef NOMINMAX
#undef UNICODE
#define NOMINMAX #define NOMINMAX
#include <windows.h> #include <windows.h>
#undef NOMINMAX #undef NOMINMAX
#define UNICODE
#else #else
#include <windows.h> #include <windows.h>
#endif #endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment