new.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /*
  2. * Copyright (c) 1999
  3. * Boris Fomitchev
  4. *
  5. * This material is provided "as is", with absolutely no warranty expressed
  6. * or implied. Any use is at your own risk.
  7. *
  8. * Permission to use or copy this software for any purpose is hereby granted
  9. * without fee, provided the above notices are retained on all copies.
  10. * Permission to modify the code and to distribute modified code is granted,
  11. * provided the above notices are retained, and a notice that the code was
  12. * modified is included with the above copyright notice.
  13. *
  14. */
  15. #if !defined (_STLP_OUTERMOST_HEADER_ID)
  16. # define _STLP_OUTERMOST_HEADER_ID 0x848
  17. # include <stl/_prolog.h>
  18. #elif (_STLP_OUTERMOST_HEADER_ID == 0x848) && ! defined (_STLP_DONT_POP_HEADER_ID)
  19. # define _STLP_DONT_POP_HEADER_ID
  20. #endif
  21. #if !defined(_STLP_NO_NEW_HEADER)
  22. # if defined (__BORLANDC__)
  23. # include <new>
  24. # elif defined (_STLP_HAS_INCLUDE_NEXT)
  25. # include_next <new.h>
  26. # elif defined(__INTEL_COMPILER) && (__INTEL_COMPILER >= 800 && !defined(_MSC_VER))
  27. # include _STLP_NATIVE_OLD_STREAMS_HEADER(new.h)
  28. # else
  29. # if defined (__GNUC__) && (__GNUC__ >= 3)
  30. # include _STLP_NATIVE_OLD_STREAMS_HEADER(new.h)
  31. # else
  32. # include _STLP_NATIVE_CPP_RUNTIME_HEADER(new.h)
  33. # endif
  34. # endif
  35. #endif /* !defined(_STLP_NO_NEW_HEADER) */
  36. #if (_STLP_OUTERMOST_HEADER_ID == 0x848)
  37. # if ! defined (_STLP_DONT_POP_HEADER_ID)
  38. # include <stl/_epilog.h>
  39. # undef _STLP_OUTERMOST_HEADER_ID
  40. # else
  41. # undef _STLP_DONT_POP_HEADER_ID
  42. # endif
  43. #endif
  44. // Local Variables:
  45. // mode:C++
  46. // End: