typeinfo.h 627 B

1234567891011121314151617181920212223242526272829303132
  1. /**
  2. * This file has no copyright assigned and is placed in the Public Domain.
  3. * This file is part of the mingw-w64 runtime package.
  4. * No warranty is given; refer to the file DISCLAIMER.PD within this package.
  5. */
  6. #include <crtdefs.h>
  7. #ifndef _INC_TYPEINFO
  8. #define _INC_TYPEINFO
  9. #pragma pack(push,_CRT_PACKING)
  10. #ifndef RC_INVOKED
  11. #ifndef __cplusplus
  12. #error This header requires a C++ compiler ...
  13. #endif
  14. #include <typeinfo>
  15. #ifdef __RTTI_OLDNAMES
  16. using std::bad_cast;
  17. using std::bad_typeid;
  18. typedef type_info Type_info;
  19. typedef bad_cast Bad_cast;
  20. typedef bad_typeid Bad_typeid;
  21. #endif
  22. #endif
  23. #pragma pack(pop)
  24. #endif