summaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
authorFearlessTobi <thm.frey@gmail.com>2023-12-25 14:10:40 +0100
committerFearlessTobi <thm.frey@gmail.com>2023-12-25 14:10:40 +0100
commit553dac2ae0b83fa4b251511b62c1022359b6851d (patch)
treead486959148e2ba53ea33e2017fa309a90ce5220 /src/common
parentmain: Remove unused enum (diff)
downloadyuzu-553dac2ae0b83fa4b251511b62c1022359b6851d.tar
yuzu-553dac2ae0b83fa4b251511b62c1022359b6851d.tar.gz
yuzu-553dac2ae0b83fa4b251511b62c1022359b6851d.tar.bz2
yuzu-553dac2ae0b83fa4b251511b62c1022359b6851d.tar.lz
yuzu-553dac2ae0b83fa4b251511b62c1022359b6851d.tar.xz
yuzu-553dac2ae0b83fa4b251511b62c1022359b6851d.tar.zst
yuzu-553dac2ae0b83fa4b251511b62c1022359b6851d.zip
Diffstat (limited to 'src/common')
-rw-r--r--src/common/ring_buffer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/ring_buffer.h b/src/common/ring_buffer.h
index 5c961b202..e7e9fdb38 100644
--- a/src/common/ring_buffer.h
+++ b/src/common/ring_buffer.h
@@ -103,7 +103,7 @@ private:
// 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.
-#if defined(_MSC_VER) && _MSC_VER >= 1911
+#ifdef __cpp_lib_hardware_interference_size
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