summaryrefslogtreecommitdiff
path: root/www/firefox/files/patch-bug1073709
blob: f011d7438ad0f840d73c69180d39e2356466f14f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
diff --git mfbt/Atomics.h mfbt/Atomics.h
index 495a9d3..c7f7601 100644
--- mfbt/Atomics.h
+++ mfbt/Atomics.h
@@ -34,10 +34,12 @@
     * loose typing of the atomic builtins. GCC 4.5 and 4.6 lacks inline
     * definitions for unspecialized std::atomic and causes linking errors.
     * Therefore, we require at least 4.7.0 for using libstdc++.
+    *
+    * libc++ <atomic> is only functional with clang.
     */
 #  if MOZ_USING_LIBSTDCXX && MOZ_LIBSTDCXX_VERSION_AT_LEAST(4, 7, 0)
 #    define MOZ_HAVE_CXX11_ATOMICS
-#  elif MOZ_USING_LIBCXX
+#  elif MOZ_USING_LIBCXX && defined(__clang__)
 #    define MOZ_HAVE_CXX11_ATOMICS
 #  endif
 /*