summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/compat.h2
-rw-r--r--make/test/compiler.cpp2
2 files changed, 4 insertions, 0 deletions
diff --git a/include/compat.h b/include/compat.h
index e7719bcd7..1e6fc3d45 100644
--- a/include/compat.h
+++ b/include/compat.h
@@ -27,10 +27,12 @@
*/
#if defined _LIBCPP_VERSION || defined _WIN32
# define TR1NS std
+# include <array>
# include <unordered_map>
# include <type_traits>
#else
# define TR1NS std::tr1
+# include <tr1/array>
# include <tr1/unordered_map>
# include <tr1/type_traits>
#endif
diff --git a/make/test/compiler.cpp b/make/test/compiler.cpp
index edf08b8e3..e2cbd9f64 100644
--- a/make/test/compiler.cpp
+++ b/make/test/compiler.cpp
@@ -18,9 +18,11 @@
#include <iostream>
#if defined _LIBCPP_VERSION
+# include <array>
# include <type_traits>
# include <unordered_map>
#else
+# include <tr1/array>
# include <tr1/type_traits>
# include <tr1/unordered_map>
#endif