X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/4388f060552cc537e71e957d32f35e9d75a61233..4f1e1a09ce4daed860e35d359ce2fceccb0764e8:/icuSources/common/unicode/std_string.h?ds=sidebyside diff --git a/icuSources/common/unicode/std_string.h b/icuSources/common/unicode/std_string.h index 67b1d6c5..729c5639 100644 --- a/icuSources/common/unicode/std_string.h +++ b/icuSources/common/unicode/std_string.h @@ -1,12 +1,14 @@ +// © 2016 and later: Unicode, Inc. and others. +// License & terms of use: http://www.unicode.org/copyright.html /* ******************************************************************************* * -* Copyright (C) 2009-2011, International Business Machines +* Copyright (C) 2009-2014, International Business Machines * Corporation and others. All Rights Reserved. * ******************************************************************************* * file name: std_string.h -* encoding: US-ASCII +* encoding: UTF-8 * tab size: 8 (not used) * indentation:4 * @@ -18,17 +20,18 @@ #define __STD_STRING_H__ /** - * \file + * \file * \brief C++ API: Central ICU header for including the C++ standard <string> * header and for related definitions. */ #include "unicode/utypes.h" -#if U_HAVE_STD_STRING - +// Workaround for a libstdc++ bug before libstdc++4.6 (2011). +// https://bugs.llvm.org/show_bug.cgi?id=13364 +#if defined(__GLIBCXX__) +namespace std { class type_info; } +#endif #include -#endif // U_HAVE_STD_STRING - #endif // __STD_STRING_H__