mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-13 08:53:20 +00:00
ICU-10272 the clang workaround was only *mostly* harmless. Disable it under Windows. Fix: typeinfo(82): error C2874: using-declaration causes a multiple declaration of 'type_info'
X-SVN-Rev: 35375
This commit is contained in:
parent
901f2644d8
commit
c866020da6
4 changed files with 12 additions and 2 deletions
|
@ -27,7 +27,10 @@
|
|||
|
||||
#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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -26,7 +26,10 @@
|
|||
* 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)
|
||||
|
|
|
@ -29,7 +29,10 @@
|
|||
#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>
|
||||
|
|
Loading…
Add table
Reference in a new issue