]> granicus.if.org Git - icu/commitdiff
ICU-10272 the clang workaround was only *mostly* harmless. Disable it under Windows...
authorSteven R. Loomis <srl@icu-project.org>
Fri, 7 Mar 2014 00:30:23 +0000 (00:30 +0000)
committerSteven R. Loomis <srl@icu-project.org>
Fri, 7 Mar 2014 00:30:23 +0000 (00:30 +0000)
X-SVN-Rev: 35375

icu4c/source/common/unicode/std_string.h
icu4c/source/common/utypeinfo.h
icu4c/source/io/unicode/ustream.h
icu4c/source/test/intltest/dcfmtest.cpp

index e39ad41ebb16ae06e09fbcb003bb72dbef7053ef..626ab06042c0482693b09783a313da5665c065f2 100644 (file)
 
 #if U_HAVE_STD_STRING
 
+#if defined(_MSC_VER) && _HAS_EXCEPTIONS == 0
+#else
 namespace std { class type_info; } // WORKAROUND: http://llvm.org/bugs/show_bug.cgi?id=13364
+#endif
 #include <string>
 
 #endif  // U_HAVE_STD_STRING
index 8031ee5b0364eb74f28526b4dbad01e7ca88fe3a..e35f125a3975b1bcc15947d1a7139ac9b831ba2d 100644 (file)
@@ -21,8 +21,9 @@
 #if defined(_MSC_VER) && _HAS_EXCEPTIONS == 0
 #include <exception>
 using std::exception;
+#else
+namespace std { class type_info; } // WORKAROUND: http://llvm.org/bugs/show_bug.cgi?id=13364
 #endif
-namespace std { class type_info; } // WORKAROUND: http://llvm.org/bugs/show_bug.cgi?id=13364 
 #include <typeinfo>  // for 'typeid' to work
 
 #endif
index 502fcc052f9e4f218b73a810ce3ffa331df96a4f..dfa199db7dc425cb6499ff024863a46269d90eca 100644 (file)
  * C++ I/O stream API.
  */
 
-namespace std { class type_info; } // WORKAROUND: http://llvm.org/bugs/show_bug.cgi?id=13364 
+#if defined(_MSC_VER) && _HAS_EXCEPTIONS == 0
+#else
+namespace std { class type_info; } // WORKAROUND: http://llvm.org/bugs/show_bug.cgi?id=13364
+#endif
 
 #if U_IOSTREAM_SOURCE >= 199711
 #if (__GNUC__ == 2)
index 197f5424b6017e3a49a2814606123f264afc15bd..84f31c3e429e76c7323862a9e17c9f82a81e51ae 100644 (file)
 #include <string.h>
 #include <stdio.h>
 
+#if defined(_MSC_VER) && _HAS_EXCEPTIONS == 0
+#else
 namespace std { class type_info; } // WORKAROUND: http://llvm.org/bugs/show_bug.cgi?id=13364
+#endif
 
 #include <string>
 #include <iostream>