aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2023-09-20 20:03:39 -0700
committerChris Robinson <[email protected]>2023-09-20 20:03:39 -0700
commit3d5bd75559ff85ea2a019968361212482afd904b (patch)
tree07c19c74c52e478fe7f742fbc51d2eb78510afe7
parent0eeb3c29f412dd38666dc57e9bc117e3e1073d78 (diff)
Fix MSVC compilation
MinGW's headers don't seem to define operator| for AudioObjectType.
-rw-r--r--alc/backends/wasapi.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/alc/backends/wasapi.cpp b/alc/backends/wasapi.cpp
index 4129ac9d..de974774 100644
--- a/alc/backends/wasapi.cpp
+++ b/alc/backends/wasapi.cpp
@@ -108,8 +108,10 @@ using ReferenceTime = std::chrono::duration<REFERENCE_TIME,std::ratio<1,10000000
inline constexpr ReferenceTime operator "" _reftime(unsigned long long int n) noexcept
{ return ReferenceTime{static_cast<REFERENCE_TIME>(n)}; }
+#ifndef _MSC_VER
constexpr AudioObjectType operator|(AudioObjectType lhs, AudioObjectType rhs) noexcept
{ return static_cast<AudioObjectType>(lhs | al::to_underlying(rhs)); }
+#endif
#define MONO SPEAKER_FRONT_CENTER