/home/ntakagi/work/STLport-5.1.5/stlport/typeinfo.h

Go to the documentation of this file.
00001 /*
00002  * Copyright (c) 1999
00003  * Boris Fomitchev
00004  *
00005  * This material is provided "as is", with absolutely no warranty expressed
00006  * or implied. Any use is at your own risk.
00007  *
00008  * Permission to use or copy this software for any purpose is hereby granted
00009  * without fee, provided the above notices are retained on all copies.
00010  * Permission to modify the code and to distribute modified code is granted,
00011  * provided the above notices are retained, and a notice that the code was
00012  * modified is included with the above copyright notice.
00013  *
00014  */
00015 
00016 #ifndef _STLP_OLDSTD_typeinfo
00017 #define _STLP_OLDSTD_typeinfo
00018 
00019 #ifndef _STLP_OUTERMOST_HEADER_ID
00020 #  define _STLP_OUTERMOST_HEADER_ID 0x874
00021 #  include <stl/_prolog.h>
00022 #endif
00023 
00024 #ifndef _STLP_NO_TYPEINFO
00025 
00026 #  if defined (__GNUC__)
00027 #    undef _STLP_OLDSTD_typeinfo
00028 #    include <typeinfo>
00029 #    define _STLP_OLDSTD_typeinfo
00030 #  else
00031 #    if !defined (__BORLANDC__) || (__BORLANDC__ < 0x580)
00032 #      include _STLP_NATIVE_CPP_RUNTIME_HEADER(typeinfo.h)
00033 #    else
00034 #      include _STLP_NATIVE_CPP_C_HEADER(typeinfo.h)
00035 #    endif
00036 #    if defined (__BORLANDC__) && (__BORLANDC__ >= 0x580) || \
00037         defined (__DMC__)
00038 using std::type_info;
00039 using std::bad_typeid;
00040 using std::bad_cast;
00041 #    endif
00042 #  endif
00043 
00044 // if <typeinfo> already included, do not import anything
00045 
00046 #  if defined (_STLP_USE_OWN_NAMESPACE) && !(defined (_STLP_TYPEINFO) && !defined (_STLP_NO_NEW_NEW_HEADER))
00047 
00048 _STLP_BEGIN_NAMESPACE
00049 
00050 using /*_STLP_VENDOR_EXCEPT_STD */ :: type_info;
00051 #    if !(defined(__MRC__) || (defined(__SC__) && !defined(__DMC__)))
00052 using /* _STLP_VENDOR_EXCEPT_STD */ :: bad_typeid;
00053 #    endif
00054 
00055 using /* _STLP_VENDOR_EXCEPT_STD */ :: bad_cast;
00056 
00057 _STLP_END_NAMESPACE
00058 
00059 #  endif /* _STLP_OWN_NAMESPACE */
00060 
00061 #endif /* _STLP_NO_TYPEINFO */
00062 
00063 #if (_STLP_OUTERMOST_HEADER_ID == 0x874)
00064 #  include <stl/_epilog.h>
00065 #  undef _STLP_OUTERMOST_HEADER_ID
00066 #endif
00067 
00068 #endif /* _STLP_OLDSTD_typeinfo */
00069 
00070 // Local Variables:
00071 // mode:C++
00072 // End:



Generated on Mon Mar 10 15:32:47 2008 by  doxygen 1.5.1