mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-05-04 03:04:48 +12:00
Fix compilation errors on GCC/Clang
This commit is contained in:
parent
318f55f7c3
commit
8fb758eca4
2 changed files with 4 additions and 4 deletions
|
@ -96,7 +96,7 @@ namespace Common {
|
|||
// Having them on the same cache-line would result in false-sharing between them.
|
||||
// TODO: Remove this ifdef whenever clang and GCC support
|
||||
// std::hardware_destructive_interference_size.
|
||||
#ifdef __cpp_lib_hardware_interference_size
|
||||
#if __cpp_lib_hardware_interference_size == 201703L
|
||||
alignas(std::hardware_destructive_interference_size) std::atomic_size_t m_read_index{0};
|
||||
alignas(std::hardware_destructive_interference_size) std::atomic_size_t m_write_index{0};
|
||||
#else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue