aboutsummaryrefslogtreecommitdiff
path: root/ports/angle/002-fix-builder-error.patch
diff options
context:
space:
mode:
authorJack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com>2019-12-24 06:39:17 +0800
committerdan-shaw <51385773+dan-shaw@users.noreply.github.com>2019-12-23 14:39:17 -0800
commitff6d107460ce706b2b39426581e76294f5d5242d (patch)
treeb042b2a74bea07708ee2a29370b92deffb864939 /ports/angle/002-fix-builder-error.patch
parent80cf1e4b19f2b75b9c5c5fd4aea89cd026489d9b (diff)
downloadvcpkg-ff6d107460ce706b2b39426581e76294f5d5242d.tar.gz
vcpkg-ff6d107460ce706b2b39426581e76294f5d5242d.zip
[angle]Fix windows build error: cannot find definition far. (#7923)
* [angle]Fix windows build error: cannot find definition far. * [Angle]Re-fix build error.
Diffstat (limited to 'ports/angle/002-fix-builder-error.patch')
-rw-r--r--ports/angle/002-fix-builder-error.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/ports/angle/002-fix-builder-error.patch b/ports/angle/002-fix-builder-error.patch
new file mode 100644
index 000000000..db70f9fdc
--- /dev/null
+++ b/ports/angle/002-fix-builder-error.patch
@@ -0,0 +1,30 @@
+diff --git a/src/gpu_info_util/SystemInfo_win.cpp b/src/gpu_info_util/SystemInfo_win.cpp
+index 878f0f5..2255982 100644
+--- a/src/gpu_info_util/SystemInfo_win.cpp
++++ b/src/gpu_info_util/SystemInfo_win.cpp
+@@ -4,6 +4,12 @@
+ // found in the LICENSE file.
+ //
+
++// Windows.h needs to be included first
++#include <windows.h>
++
++#include <d3d10.h>
++#include <dxgi.h>
++
+ // SystemInfo_win.cpp: implementation of the Windows-specific parts of SystemInfo.h
+
+ #include "gpu_info_util/SystemInfo_internal.h"
+@@ -11,12 +17,6 @@
+ #include "common/debug.h"
+ #include "common/string_utils.h"
+
+-// Windows.h needs to be included first
+-#include <windows.h>
+-
+-#include <d3d10.h>
+-#include <dxgi.h>
+-
+ #include <array>
+ #include <sstream>
+