X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/a01113dcd0f39d5da295ef82785beff9ed86fe38..340931cb2e044a2141d11567dd0f782524e32994:/icuSources/io/unicode/ustream.h diff --git a/icuSources/io/unicode/ustream.h b/icuSources/io/unicode/ustream.h index f185c453..927342cb 100644 --- a/icuSources/io/unicode/ustream.h +++ b/icuSources/io/unicode/ustream.h @@ -17,6 +17,10 @@ #ifndef USTREAM_H #define USTREAM_H +#include "unicode/utypes.h" + +#if U_SHOW_CPLUSPLUS_API + #include "unicode/unistr.h" #if !UCONFIG_NO_CONVERSION // not available without conversion @@ -36,7 +40,6 @@ namespace std { class type_info; } // WORKAROUND: http://llvm.org/bugs/show_bug. #include -#if U_SHOW_CPLUSPLUS_API U_NAMESPACE_BEGIN /** @@ -56,10 +59,11 @@ 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 /* No operator for UChar because it can conflict with wchar_t */ +#endif /* U_SHOW_CPLUSPLUS_API */ + #endif