summaryrefslogtreecommitdiff
path: root/tests/stdatomic_test.cpp
diff options
context:
space:
mode:
authorDan Albert <danalbert@google.com>2014-09-26 15:37:52 -0700
committerDan Albert <danalbert@google.com>2014-09-30 10:28:30 -0700
commit3a5aeba4bda8b0977678021deed7aebeaa63ded1 (patch)
tree631f9ac4e13ff3f71c2421b1ff92bc0dd3525990 /tests/stdatomic_test.cpp
parentd9898c5b8292b9eecc40a7819bfedb4e1a4fe041 (diff)
Switch benchmarks and tests to libc++.
Change-Id: I3b9c8f8c14a1e227e67ae1977cc29b0e8fccef5d
Diffstat (limited to 'tests/stdatomic_test.cpp')
-rw-r--r--tests/stdatomic_test.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/stdatomic_test.cpp b/tests/stdatomic_test.cpp
index b7fb19b0d..eb030bfa7 100644
--- a/tests/stdatomic_test.cpp
+++ b/tests/stdatomic_test.cpp
@@ -14,8 +14,10 @@
* limitations under the License.
*/
-#include <stdatomic.h>
#include <gtest/gtest.h>
+// Fool stdatomic.h into not using <atomic>.
+#undef _USING_LIBCXX
+#include <stdatomic.h>
#include <pthread.h>
#include <stdint.h>