From: Steven R. Loomis Date: Thu, 6 Mar 2014 19:39:41 +0000 (+0000) Subject: ICU-10272 clang workaround X-Git-Tag: milestone-59-0-1~2056 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bd3131899f2443215a535ecfde3d380db9ed0074;p=icu ICU-10272 clang workaround X-SVN-Rev: 35366 --- diff --git a/icu4c/source/common/unicode/std_string.h b/icu4c/source/common/unicode/std_string.h index 67b1d6c5aad..e39ad41ebb1 100644 --- a/icu4c/source/common/unicode/std_string.h +++ b/icu4c/source/common/unicode/std_string.h @@ -1,7 +1,7 @@ /* ******************************************************************************* * -* Copyright (C) 2009-2011, International Business Machines +* Copyright (C) 2009-2014, International Business Machines * Corporation and others. All Rights Reserved. * ******************************************************************************* @@ -18,7 +18,7 @@ #define __STD_STRING_H__ /** - * \file + * \file * \brief C++ API: Central ICU header for including the C++ standard <string> * header and for related definitions. */ @@ -27,6 +27,7 @@ #if U_HAVE_STD_STRING +namespace std { class type_info; } // WORKAROUND: http://llvm.org/bugs/show_bug.cgi?id=13364 #include #endif // U_HAVE_STD_STRING diff --git a/icu4c/source/common/utypeinfo.h b/icu4c/source/common/utypeinfo.h index 4de16d6d790..8031ee5b036 100644 --- a/icu4c/source/common/utypeinfo.h +++ b/icu4c/source/common/utypeinfo.h @@ -1,7 +1,7 @@ /* ****************************************************************************** * -* Copyright (C) 2012, International Business Machines +* Copyright (C) 2012-2014, International Business Machines * Corporation and others. All Rights Reserved. * ****************************************************************************** @@ -22,6 +22,7 @@ #include using std::exception; #endif +namespace std { class type_info; } // WORKAROUND: http://llvm.org/bugs/show_bug.cgi?id=13364 #include // for 'typeid' to work #endif diff --git a/icu4c/source/io/unicode/ustream.h b/icu4c/source/io/unicode/ustream.h index abd24388697..502fcc052f9 100644 --- a/icu4c/source/io/unicode/ustream.h +++ b/icu4c/source/io/unicode/ustream.h @@ -1,6 +1,6 @@ /* ********************************************************************** -* Copyright (C) 2001-2011 International Business Machines +* Copyright (C) 2001-2014 International Business Machines * Corporation and others. All Rights Reserved. ********************************************************************** * FILE NAME : ustream.h @@ -26,6 +26,8 @@ * C++ I/O stream API. */ +namespace std { class type_info; } // WORKAROUND: http://llvm.org/bugs/show_bug.cgi?id=13364 + #if U_IOSTREAM_SOURCE >= 199711 #if (__GNUC__ == 2) #include diff --git a/icu4c/source/test/intltest/dcfmtest.cpp b/icu4c/source/test/intltest/dcfmtest.cpp index e36cf7b2709..197f5424b60 100644 --- a/icu4c/source/test/intltest/dcfmtest.cpp +++ b/icu4c/source/test/intltest/dcfmtest.cpp @@ -1,6 +1,6 @@ /******************************************************************** * COPYRIGHT: - * Copyright (c) 2002-2013, International Business Machines Corporation and + * Copyright (c) 2002-2014, International Business Machines Corporation and * others. All Rights Reserved. ********************************************************************/ @@ -29,6 +29,8 @@ #include #include +namespace std { class type_info; } // WORKAROUND: http://llvm.org/bugs/show_bug.cgi?id=13364 + #include #include