summaryrefslogtreecommitdiffstats
path: root/INPUTS
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2012-04-04 06:24:32 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2012-04-04 06:24:32 +0000
commit5a5a971908a1fd064454db44c42333a3aecf3d5b (patch)
treebf93fa42041b74e37c2391986f3996ce9ced91f5 /INPUTS
parentd280389b42bb55cd8969eae181dc3ff9f05e9aaf (diff)
For PR11916: Add support for g++'s __int128 keyword. Unlike __int128_t, this is
a type specifier and can be combined with unsigned. This allows libstdc++4.7 to be used with clang in c++98 mode. Several other changes are still required for libstdc++4.7 to work with clang in c++11 mode. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@153999 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'INPUTS')
-rw-r--r--INPUTS/all-std-headers.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/INPUTS/all-std-headers.cpp b/INPUTS/all-std-headers.cpp
index 13e378dfc9..5f13b9d5e8 100644
--- a/INPUTS/all-std-headers.cpp
+++ b/INPUTS/all-std-headers.cpp
@@ -44,7 +44,9 @@
#include <stdexcept>
#include <streambuf>
#include <string>
-#include <strstream>
+#if __has_include(<strstream>)
+#include <strstream>
+#endif
#include <typeinfo>
#include <utility>
#include <valarray>