+// © 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
#include "unicode/unistr.h"
+#if !UCONFIG_NO_CONVERSION // not available without conversion
+
/**
* \file
* \brief C++ API: Unicode iostream like API
* C++ I/O stream API.
*/
-#if U_IOSTREAM_SOURCE >= 199711
-#if (__GNUC__ == 2)
-#include <iostream>
-#else
-#include <istream>
-#include <ostream>
+#if defined(__GLIBCXX__)
+namespace std { class type_info; } // WORKAROUND: http://llvm.org/bugs/show_bug.cgi?id=13364
#endif
+#include <iostream>
+
+#if U_SHOW_CPLUSPLUS_API
U_NAMESPACE_BEGIN
/**
*/
U_IO_API std::istream & U_EXPORT2 operator>>(std::istream& stream, UnicodeString& s);
U_NAMESPACE_END
+#endif // U_SHOW_CPLUSPLUS_API
#endif