compat.h 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. /*
  2. * Compatibility section
  3. * This section sets new-style macros based on old-style ones, for compatibility
  4. */
  5. #if defined (__STL_DEBUG) && !defined (_STLP_DEBUG)
  6. # define _STLP_DEBUG __STL_DEBUG
  7. #endif
  8. #if defined (__STL_NO_ANACHRONISMS) && !defined (_STLP_NO_ANACHRONISMS)
  9. # define _STLP_NO_ANACHRONISMS __STL_NO_ANACHRONISMS
  10. #endif
  11. #if defined (__STL_NO_EXTENSIONS) && !defined (_STLP_NO_EXTENSIONS)
  12. # define _STLP_NO_EXTENSIONS __STL_NO_EXTENSIONS
  13. #endif
  14. #if defined (__STL_NO_EXCEPTIONS) && !defined (_STLP_NO_EXCEPTIONS)
  15. # define _STLP_NO_EXCEPTIONS __STL_NO_EXCEPTIONS
  16. #endif
  17. #if defined (__STL_NO_NAMESPACES) && !defined (_STLP_NO_NAMESPACES)
  18. # define _STLP_NO_NAMESPACES __STL_NO_NAMESPACES
  19. #endif
  20. #if defined (__STL_MINIMUM_DEFAULT_TEMPLATE_PARAMS) && !defined (_STLP_MINIMUM_DEFAULT_TEMPLATE_PARAMS)
  21. # define _STLP_MINIMUM_DEFAULT_TEMPLATE_PARAMS __STL_MINIMUM_DEFAULT_TEMPLATE_PARAMS
  22. #endif
  23. #if defined (__STL_NO_OWN_NAMESPACE) && !defined (_STLP_NO_OWN_NAMESPACE)
  24. # define _STLP_NO_OWN_NAMESPACE __STL_NO_OWN_NAMESPACE
  25. #endif
  26. #if defined (__STL_NO_RELOPS_NAMESPACE) && !defined (_STLP_NO_RELOPS_NAMESPACE)
  27. # define _STLP_NO_RELOPS_NAMESPACE __STL_NO_RELOPS_NAMESPACE
  28. #endif
  29. #if defined (__STL_DEBUG_UNINITIALIZED) && !defined (_STLP_DEBUG_UNINITIALIZED)
  30. # define _STLP_DEBUG_UNINITIALIZED __STL_DEBUG_UNINITIALIZED
  31. #endif
  32. #if defined (__STL_SHRED_BYTE) && !defined (_STLP_SHRED_BYTE)
  33. # define _STLP_SHRED_BYTE __STL_SHRED_BYTE
  34. #endif
  35. #if defined (__STL_USE_MFC) && !defined (_STLP_USE_MFC)
  36. # define _STLP_USE_MFC __STL_USE_MFC
  37. #endif
  38. #if defined (__STL_USE_NEWALLOC) && !defined (_STLP_USE_NEWALLOC)
  39. # define _STLP_USE_NEWALLOC __STL_USE_NEWALLOC
  40. #endif
  41. #if defined (__STL_USE_MALLOC) && !defined (_STLP_USE_MALLOC)
  42. # define _STLP_USE_MALLOC __STL_USE_MALLOC
  43. #endif
  44. #if defined (__STL_DEBUG_ALLOC) && !defined (_STLP_DEBUG_ALLOC)
  45. # define _STLP_DEBUG_ALLOC __STL_DEBUG_ALLOC
  46. #endif
  47. #if defined (__STL_DEBUG_MESSAGE) && !defined (_STLP_DEBUG_MESSAGE)
  48. # define _STLP_DEBUG_MESSAGE __STL_DEBUG_MESSAGE
  49. #endif
  50. #if defined (__STL_DEBUG_TERMINATE) && !defined (_STLP_DEBUG_TERMINATE)
  51. # define _STLP_DEBUG_TERMINATE __STL_DEBUG_TERMINATE
  52. #endif
  53. #if defined (__STL_USE_ABBREVS) && !defined (_STLP_USE_ABBREVS)
  54. # define _STLP_USE_ABBREVS __STL_USE_ABBREVS
  55. #endif
  56. #if defined (__STL_NO_MSVC50_COMPATIBILITY) && !defined (_STLP_NO_MSVC50_COMPATIBILITY)
  57. # define _STLP_NO_MSVC50_COMPATIBILITY __STL_NO_MSVC50_COMPATIBILITY
  58. #endif
  59. /* STLport do not support anymore the iostream wrapper mode so this macro should
  60. * always been define for other libraries that was using it:
  61. */
  62. #if !defined (_STLP_OWN_IOSTREAMS)
  63. # define _STLP_OWN_IOSTREAMS
  64. #endif
  65. #if defined (_STLP_NO_OWN_IOSTREAMS)
  66. # error STLport do not support anymore the wrapper mode. If you want to use STLport \
  67. use its iostreams implementation or no iostreams at all.
  68. #endif