]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/io/unicode/ustream.h
ICU-66108.tar.gz
[apple/icu.git] / icuSources / io / unicode / ustream.h
index f185c453f8fa2cae8c1a9653b7adeddbc258c990..927342cb0313a429fe49d3a658fbd010f3460ad8 100644 (file)
 #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 <iostream>
 
-#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