aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/angle/003-fix-mingw.patch
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/angle/003-fix-mingw.patch
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/angle/003-fix-mingw.patch')
-rw-r--r--vcpkg/ports/angle/003-fix-mingw.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/vcpkg/ports/angle/003-fix-mingw.patch b/vcpkg/ports/angle/003-fix-mingw.patch
new file mode 100644
index 0000000..304d822
--- /dev/null
+++ b/vcpkg/ports/angle/003-fix-mingw.patch
@@ -0,0 +1,22 @@
+diff --git a/src/common/mathutil.h b/src/common/mathutil.h
+index 1d73bbf..c5b9cc8 100644
+--- a/src/common/mathutil.h
++++ b/src/common/mathutil.h
+@@ -1073,7 +1073,7 @@ inline int BitCount(uint64_t bits)
+ # endif // defined(_M_IX86) || defined(_M_X64)
+ #endif // defined(_MSC_VER) && !defined(__clang__)
+
+-#if defined(ANGLE_PLATFORM_POSIX) || defined(__clang__)
++#if defined(ANGLE_PLATFORM_POSIX) || defined(__clang__) || defined(__MINGW32__)
+ inline int BitCount(uint32_t bits)
+ {
+ return __builtin_popcount(bits);
+@@ -1083,7 +1083,7 @@ inline int BitCount(uint64_t bits)
+ {
+ return __builtin_popcountll(bits);
+ }
+-#endif // defined(ANGLE_PLATFORM_POSIX) || defined(__clang__)
++#endif // defined(ANGLE_PLATFORM_POSIX) || defined(__clang__) || defined(__MINGW32__)
+
+ inline int BitCount(uint8_t bits)
+ {