]>
git.saurik.com Git - apple/icu.git/blob - icuSources/common/utypeinfo.h
2 ******************************************************************************
4 * Copyright (C) 2012, International Business Machines
5 * Corporation and others. All Rights Reserved.
7 ******************************************************************************
10 #ifndef __UTYPEINFO_H__
11 #define __UTYPEINFO_H__
13 // Windows header <typeinfo> does not define 'exception' in 'std' namespace.
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
16 // include <exception> explicilty and add using statement below.
17 // Whenever 'typeid' is used, this header has to be included
18 // instead of <typeinfo>.
19 // Visual Stuido 10 emits warning 4275 with this change. If you compile
20 // with exception disabled, you have to suppress warning 4275.
21 #if defined(_MSC_VER) && _HAS_EXCEPTIONS == 0
25 #include <typeinfo> // for 'typeid' to work