mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 02:59:01 -04:00
Add the <type_traits> header to the compiler test file.
This commit is contained in:
parent
4e9af81504
commit
100048eb41
@ -96,7 +96,7 @@ sub __get_template_settings($$$) {
|
||||
sub __test_compiler($) {
|
||||
my $compiler = shift;
|
||||
return 0 unless run_test("`$compiler`", !system "$compiler -v >/dev/null 2>&1");
|
||||
return 0 unless run_test("`$compiler`", test_file($compiler, 'compiler.cpp'), 'compatible');
|
||||
return 0 unless run_test("`$compiler`", test_file($compiler, 'compiler.cpp', '-fno-rtti'), 'compatible');
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
@ -18,8 +18,10 @@
|
||||
|
||||
#include <iostream>
|
||||
#if defined _LIBCPP_VERSION
|
||||
# include <type_traits>
|
||||
# include <unordered_map>
|
||||
#else
|
||||
# include <tr1/type_traits>
|
||||
# include <tr1/unordered_map>
|
||||
#endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user