Bug 911140 - Fix a typo that prevents libc++ from using C++11 atomics. r=jcranmer
authorJan Beich <jbeich@tormail.org>
Fri, 30 Aug 2013 16:14:52 -0400
changeset 158035 a4252161972b4c126fb842baa3f8f7ef26ea6f64
parent 158034 d4141cb0d9cf522a88d36d3694ca348f6f544048
child 158036 fbef2705edfcb9b487e702015d10acd4500d08f4
push id2961
push userlsblakk@mozilla.com
push dateMon, 28 Oct 2013 21:59:28 +0000
treeherdermozilla-beta@73ef4f13486f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjcranmer
bugs911140
milestone26.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 911140 - Fix a typo that prevents libc++ from using C++11 atomics. r=jcranmer
mfbt/Compiler.h
--- a/mfbt/Compiler.h
+++ b/mfbt/Compiler.h
@@ -38,17 +38,17 @@
  * the version macros and deduce macros from there.
  */
 #ifdef __cplusplus
 #  include <cstddef>
 #  ifdef _STLPORT_MAJOR
 #    define MOZ_USING_STLPORT 1
 #    define MOZ_STLPORT_VERSION_AT_LEAST(major, minor, patch) \
        (_STLPORT_VERSION >= ((major) << 8 | (minor) << 4 | (patch)))
-#  elif defined(__LIBCPP_VERSION)
+#  elif defined(_LIBCPP_VERSION)
    /*
     * libc++, unfortunately, doesn't appear to have useful versioning macros.
     * Hopefully, the recommendations of N3694 with respect to standard libraries
     * will get applied instead and we won't need to worry about version numbers
     * here.
     */
 #    define MOZ_USING_LIBCXX 1
 #  elif defined(__GLIBCXX__)