summaryrefslogtreecommitdiffstats
path: root/tests/stdatomic_test.cpp
diff options
context:
space:
mode:
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 b7fb19b..eb030bf 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>