mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-01 07:45:11 +08:00
a9613b5775
* Fix import lib prefixes * Fix mingw build * x-add-version
23 lines
823 B
Diff
23 lines
823 B
Diff
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)
|
|
{
|