X-Git-Url: http://git.buserror.net/cgi-bin/gitweb.cgi?p=polintos%2Fscott%2Fpriv.git;a=blobdiff_plain;f=include%2Fc%2B%2B%2Fstl%2Fstl%2F_typeinfo.h;fp=include%2Fc%2B%2B%2Fstl%2Fstl%2F_typeinfo.h;h=4e602fb5dff0d435b742e577eb90d57c5fa4b0c6;hp=0000000000000000000000000000000000000000;hb=173d8903eb9d51a4ea7d7fa3e52dc86c9bb6d4f1;hpb=b024710fe2b60cd4a42a8993b61333d6cdb56ca3 diff --git a/include/c++/stl/stl/_typeinfo.h b/include/c++/stl/stl/_typeinfo.h new file mode 100644 index 0000000..4e602fb --- /dev/null +++ b/include/c++/stl/stl/_typeinfo.h @@ -0,0 +1,86 @@ +/* + * Copyright (c) 1999 + * Boris Fomitchev + * + * This material is provided "as is", with absolutely no warranty expressed + * or implied. Any use is at your own risk. + * + * Permission to use or copy this software for any purpose is hereby granted + * without fee, provided the above notices are retained on all copies. + * Permission to modify the code and to distribute modified code is granted, + * provided the above notices are retained, and a notice that the code was + * modified is included with the above copyright notice. + * + */ + +#ifndef _STLP_INTERNAL_TYPEINFO +#define _STLP_INTERNAL_TYPEINFO + +#if !defined (_STLP_NO_TYPEINFO) + +# if defined (_STLP_NO_NEW_NEW_HEADER) +# include +# else +# ifdef _STLP_BROKEN_BAD_CAST_CLASS +# define bad_cast _STLP_NULLIFIED_BROKEN_BAD_CAST_CLASS +# endif +# include _STLP_NATIVE_CPP_RUNTIME_HEADER(typeinfo) +# ifdef _STLP_BROKEN_BAD_CAST_CLASS +# undef bad_cast +# undef _STLP_NULLIFIED_BROKEN_BAD_CAST_CLASS +# endif +# endif + +# if (defined(_STLP_MSVC) && (_STLP_MSVC >= 1300)) || (defined(__INTEL_COMPILER) && (__INTEL_COMPILER >= 800)) +// In .NET, actually includes +# undef _STLP_OLDSTD_typeinfo +# endif + +// if already included, do not import anything +# if defined(_STLP_USE_NAMESPACES) && !defined(_STLP_OLDSTD_typeinfo) && \ + (defined(_STLP_VENDOR_GLOBAL_EXCEPT_STD) || \ + defined(_STLP_USE_OWN_NAMESPACE) || defined (_STLP_DEBUG)) +# if defined(_STLP_MSVC) && (_STLP_MSVC < 1300) && !defined(_STLP_WCE_NET) +class bad_cast : public exception {}; +# endif + +_STLP_BEGIN_NAMESPACE +// VC 6 and eVC 4 have type_info in the global namespace +# if (defined(_STLP_MSVC) && (_STLP_MSVC < 1300)) || defined(_STLP_WCE_NET) +using ::type_info; +# else +using _STLP_VENDOR_EXCEPT_STD::type_info; +# endif + +# if !(defined (__MRC__) || defined (__SC__) || defined (__DMC__)) +using _STLP_VENDOR_EXCEPT_STD::bad_typeid; +# endif + +//#if defined( __xlC__ ) && (__xlC__ < 0x500) +//# include +//struct bad_cast : exception {}; +//#endif +# if defined (_STLP_MSVC) && (_STLP_MSVC < 1300) && !defined (_STLP_WCE_NET) +using ::bad_cast; +# else +using _STLP_VENDOR_EXCEPT_STD::bad_cast; +# endif + +_STLP_END_NAMESPACE + +# endif + +#else + +# ifndef _STLP_INTERNAL_EXCEPTION +# include +# endif + +_STLP_BEGIN_NAMESPACE +# if !defined (__DMC__) +struct bad_cast : exception {}; +# endif +_STLP_END_NAMESPACE +#endif + +#endif