summaryrefslogtreecommitdiffstats
path: root/libcxx/test/support/min_allocator.h
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2016-06-14 21:31:42 +0000
committerEric Fiselier <eric@efcs.ca>2016-06-14 21:31:42 +0000
commitf2f2a6395fad5bd49a573fdf2b20072735d496f7 (patch)
tree9e17e483fe805be6d7940b2b653063df88815347 /libcxx/test/support/min_allocator.h
parent23b6d6adc9dd38fe6c2cb433e163dc74b2cdc8e6 (diff)
downloadbcm5719-llvm-f2f2a6395fad5bd49a573fdf2b20072735d496f7.tar.gz
bcm5719-llvm-f2f2a6395fad5bd49a573fdf2b20072735d496f7.zip
Replace __cplusplus comparisons and dialect __has_feature checks with TEST_STD_VER.
This is a huge cleanup that helps make the libc++ test suite more portable. Patch from STL@microsoft.com. Thanks STL! llvm-svn: 272716
Diffstat (limited to 'libcxx/test/support/min_allocator.h')
-rw-r--r--libcxx/test/support/min_allocator.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libcxx/test/support/min_allocator.h b/libcxx/test/support/min_allocator.h
index 5e3ae5d2a13..68cde7917a2 100644
--- a/libcxx/test/support/min_allocator.h
+++ b/libcxx/test/support/min_allocator.h
@@ -40,7 +40,7 @@ public:
};
-#if __cplusplus >= 201103L
+#if TEST_STD_VER >= 11
#include <memory>
@@ -286,6 +286,6 @@ public:
friend bool operator!=(min_allocator x, min_allocator y) {return !(x == y);}
};
-#endif // __cplusplus >= 201103L
+#endif // TEST_STD_VER >= 11
#endif // MIN_ALLOCATOR_H
OpenPOWER on IntegriCloud