Workaround libc++ defining __cpp_lib_hardware_interference_size
commit28f7b53f24030b66ab4b402aa8ccb3de9076c8b5
authorChris Robinson <chris.kcat@gmail.com>
Sat, 16 Mar 2024 14:15:10 +0000 (16 07:15 -0700)
committerChris Robinson <chris.kcat@gmail.com>
Sat, 16 Mar 2024 14:15:10 +0000 (16 07:15 -0700)
treeb69b0f849d75bfc42e55c67c6ab67801c631edee
parente906f400e94f25a544a8bc103ee1985b3a08313c
Workaround libc++ defining __cpp_lib_hardware_interference_size

Older versions of libc++ define the feature test macro
__cpp_lib_hardware_interference_size, but not the
std::hardware_destructive_interference_size and
std::hardware_constructive_interference_size variables it's for. Not sure which
version fixed it, so don't use it at all with libc++ for now.
common/ringbuffer.h