aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/crashpad/fix-std-20.patch
blob: 45e29641feb82eaf1b26150a2d1e5ff4faca2ef0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
diff --git a/base/atomicops_internals_portable.h b/base/atomicops_internals_portable.h
index 2486fb7..88e2d2d 100644
--- a/base/atomicops_internals_portable.h
+++ b/base/atomicops_internals_portable.h
@@ -51,13 +51,7 @@ static_assert(sizeof(*(AtomicLocation32) nullptr) == sizeof(Atomic32),
               "incompatible 32-bit atomic layout");

 inline void MemoryBarrier() {
-#if defined(__GLIBCXX__)
-  // Work around libstdc++ bug 51038 where atomic_thread_fence was declared but
-  // not defined, leading to the linker complaining about undefined references.
-  __atomic_thread_fence(std::memory_order_seq_cst);
-#else
   std::atomic_thread_fence(std::memory_order_seq_cst);
-#endif
 }

 inline Atomic32 NoBarrier_CompareAndSwap(volatile Atomic32* ptr,