math.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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 0x244
  17. # include <stl/_cprolog.h>
  18. #elif (_STLP_OUTERMOST_HEADER_ID == 0x244) && !defined (_STLP_DONT_POP_HEADER_ID)
  19. # define _STLP_DONT_POP_HEADER_ID
  20. #endif
  21. #if !defined (exception) && (!defined (__KCC) || (__KCC_VERSION < 4000)) && \
  22. !(defined(__IBMCPP__) && (500 <= __IBMCPP__)) && !defined(_STLP_WCE_EVC3)
  23. # define _STLP_EXCEPTION_WAS_REDEFINED 1
  24. # define exception __math_exception
  25. #endif
  26. #if defined (_STLP_HAS_INCLUDE_NEXT)
  27. # include_next <math.h>
  28. #else
  29. # include _STLP_NATIVE_C_HEADER(math.h)
  30. #endif
  31. #if defined (_STLP_EXCEPTION_WAS_REDEFINED)
  32. # undef exception
  33. # undef _STLP_EXCEPTION_WAS_REDEFINED
  34. #endif
  35. #ifdef _STLP_WCE_EVC3
  36. # undef _exception
  37. # define _exception exception
  38. #endif
  39. #if (_STLP_OUTERMOST_HEADER_ID == 0x244)
  40. # if ! defined (_STLP_DONT_POP_HEADER_ID)
  41. # include <stl/_epilog.h>
  42. # undef _STLP_OUTERMOST_HEADER_ID
  43. # else
  44. # undef _STLP_DONT_POP_HEADER_ID
  45. # endif
  46. #endif