Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(50)

Side by Side Diff: source/common/utypeinfo.h

Issue 845603002: Update ICU to 54.1 step 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/icu.git@master
Patch Set: remove unusued directories Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « source/common/uts46.cpp ('k') | source/common/utypes.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 ****************************************************************************** 2 ******************************************************************************
3 * 3 *
4 * Copyright (C) 2012, International Business Machines 4 * Copyright (C) 2012-2014, International Business Machines
5 * Corporation and others. All Rights Reserved. 5 * Corporation and others. All Rights Reserved.
6 * 6 *
7 ****************************************************************************** 7 ******************************************************************************
8 */ 8 */
9 9
10 #ifndef __UTYPEINFO_H__ 10 #ifndef __UTYPEINFO_H__
11 #define __UTYPEINFO_H__ 11 #define __UTYPEINFO_H__
12 12
13 // Windows header <typeinfo> does not define 'exception' in 'std' namespace. 13 // Windows header <typeinfo> does not define 'exception' in 'std' namespace.
14 // Therefore, a project using ICU cannot be compiled with _HAS_EXCEPTION 14 // Therefore, a project using ICU cannot be compiled with _HAS_EXCEPTION
15 // set to 0 on Windows with Visual Studio. To work around that, we have to 15 // set to 0 on Windows with Visual Studio. To work around that, we have to
16 // include <exception> explicilty and add using statement below. 16 // include <exception> explicilty and add using statement below.
17 // Whenever 'typeid' is used, this header has to be included 17 // Whenever 'typeid' is used, this header has to be included
18 // instead of <typeinfo>. 18 // instead of <typeinfo>.
19 // Visual Stuido 10 emits warning 4275 with this change. If you compile 19 // Visual Stuido 10 emits warning 4275 with this change. If you compile
20 // with exception disabled, you have to suppress warning 4275. 20 // with exception disabled, you have to suppress warning 4275.
21 #if defined(_MSC_VER) && _HAS_EXCEPTIONS == 0 21 #if defined(_MSC_VER) && _HAS_EXCEPTIONS == 0
22 #include <exception> 22 #include <exception>
23 using std::exception; 23 using std::exception;
24 #endif 24 #endif
25 #if !defined(_MSC_VER)
26 namespace std { class type_info; } // WORKAROUND: http://llvm.org/bugs/show_bug. cgi?id=13364
27 #endif
25 #include <typeinfo> // for 'typeid' to work 28 #include <typeinfo> // for 'typeid' to work
26 29
27 #endif 30 #endif
OLDNEW
« no previous file with comments | « source/common/uts46.cpp ('k') | source/common/utypes.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698