summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Blechmann <[email protected]>2025-07-05 08:48:18 +0800
committerTim Blechmann <[email protected]>2025-07-06 01:18:18 +0800
commit69a76c9d3529aa281be33fe2f935a19413e2cceb (patch)
tree5ee023c5bda83fea72e7f0ee36e3975e00a67951
parent791bb7b240d991b06c08ede49dc0d831857c0c73 (diff)
pmr: macos 26 sdk compile fixHEADdev
It seems that the macos 26 sdk dropped the sized deallocation. Pick-to: 6.10 Change-Id: I586c49419121ef4642100b4543dac7c4ef2f9a6f Reviewed-by: Tor Arne Vestbø <[email protected]>
-rw-r--r--src/multimedia/audio/q_pmr_emulation_p.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/multimedia/audio/q_pmr_emulation_p.h b/src/multimedia/audio/q_pmr_emulation_p.h
index 5cd15599f..b60e9d64c 100644
--- a/src/multimedia/audio/q_pmr_emulation_p.h
+++ b/src/multimedia/audio/q_pmr_emulation_p.h
@@ -183,9 +183,13 @@ protected:
return ::operator new(bytes, static_cast<std::align_val_t>(alignment));
}
- void do_deallocate(void *p, size_t bytes, size_t alignment) override
+ void do_deallocate(void *p, [[maybe_unused]] size_t bytes, size_t alignment) override
{
+# ifdef __cpp_sized_deallocation
::operator delete(p, bytes, static_cast<std::align_val_t>(alignment));
+# else
+ ::operator delete(p, static_cast<std::align_val_t>(alignment));
+# endif
}
bool do_is_equal(const memory_resource &other) const noexcept override