mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
CriticalSection: Replace std::aligned_storage_t to avoid C++23 warning
This commit is contained in:
parent
3f1e945b78
commit
b7a2c1d3bf
1 changed files with 2 additions and 2 deletions
|
|
@ -118,9 +118,9 @@ private:
|
||||||
// a block of memory here that's big enough to be used internally as a windows
|
// a block of memory here that's big enough to be used internally as a windows
|
||||||
// CRITICAL_SECTION structure.
|
// CRITICAL_SECTION structure.
|
||||||
#if JUCE_64BIT
|
#if JUCE_64BIT
|
||||||
std::aligned_storage_t<44, 8> lock;
|
alignas (8) std::byte lock[44];
|
||||||
#else
|
#else
|
||||||
std::aligned_storage_t<24, 8> lock;
|
alignas (8) std::byte lock[24];
|
||||||
#endif
|
#endif
|
||||||
#else
|
#else
|
||||||
mutable pthread_mutex_t lock;
|
mutable pthread_mutex_t lock;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue