ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Rtypeinfo.h
Go to the documentation of this file.
1 // @(#)root/base:$Id$
2 // Author: Philippe Canal 23/2/02
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2002, Rene Brun, Fons Rademakers and al. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_Rtypeinfo
13 #define ROOT_Rtypeinfo
14 
15 #ifndef ROOT_RConfig
16 #include "RConfig.h"
17 #endif
18 
19 #if defined(R__SOLARIS)
20 
21 // <typeinfo> includes <exception> which clashes with <math.h>
22 //#include <typeinfo.h>
23 namespace std { class type_info; }
24 using std::type_info;
25 
26 #elif defined(R__GLOBALSTL)
27 
28 #include <typeinfo>
29 
30 #elif defined(R__WIN32)
31 
32 // only has ::type_info without _HAS_EXCEPTIONS!
33 #include <typeinfo>
34 #if ! _HAS_EXCEPTIONS
35 namespace std { using ::type_info; }
36 #endif
37 
38 #else
39 
40 #include <typeinfo>
41 using std::type_info;
42 
43 #endif
44 
45 #endif