X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/4388f060552cc537e71e957d32f35e9d75a61233..249c4c5ea9376c24572daf9c2effa7484a282f14:/icuSources/io/unicode/ustream.h diff --git a/icuSources/io/unicode/ustream.h b/icuSources/io/unicode/ustream.h index abd24388..f185c453 100644 --- a/icuSources/io/unicode/ustream.h +++ b/icuSources/io/unicode/ustream.h @@ -1,6 +1,8 @@ +// © 2016 and later: Unicode, Inc. and others. +// License & terms of use: http://www.unicode.org/copyright.html /* ********************************************************************** -* Copyright (C) 2001-2011 International Business Machines +* Copyright (C) 2001-2014 International Business Machines * Corporation and others. All Rights Reserved. ********************************************************************** * FILE NAME : ustream.h @@ -17,6 +19,8 @@ #include "unicode/unistr.h" +#if !UCONFIG_NO_CONVERSION // not available without conversion + /** * \file * \brief C++ API: Unicode iostream like API @@ -26,14 +30,13 @@ * C++ I/O stream API. */ -#if U_IOSTREAM_SOURCE >= 199711 -#if (__GNUC__ == 2) -#include -#else -#include -#include +#if defined(__GLIBCXX__) +namespace std { class type_info; } // WORKAROUND: http://llvm.org/bugs/show_bug.cgi?id=13364 #endif +#include + +#if U_SHOW_CPLUSPLUS_API U_NAMESPACE_BEGIN /** @@ -53,6 +56,7 @@ U_IO_API std::ostream & U_EXPORT2 operator<<(std::ostream& stream, const Unicode */ U_IO_API std::istream & U_EXPORT2 operator>>(std::istream& stream, UnicodeString& s); U_NAMESPACE_END +#endif // U_SHOW_CPLUSPLUS_API #endif