climits 1.4 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. #ifndef _STLP_CLIMITS
  16. # define _STLP_CLIMITS
  17. #ifndef _STLP_OUTERMOST_HEADER_ID
  18. # define _STLP_OUTERMOST_HEADER_ID 0x108
  19. # include <stl/_prolog.h>
  20. #endif
  21. #if defined (__SUNPRO_CC) && ((__SUNPRO_CC == 0x500) && (__SUNPRO_CC_COMPAT > 4))
  22. # include </usr/include/limits.h>
  23. #elif defined (_STLP_USE_NEW_C_HEADERS)
  24. # if defined (_STLP_HAS_INCLUDE_NEXT)
  25. # include_next <climits>
  26. # else
  27. # include _STLP_NATIVE_CPP_C_HEADER(climits)
  28. # endif
  29. #else
  30. # if defined (__BORLANDC__)
  31. # if defined (_STLP_HAS_INCLUDE_NEXT)
  32. # include_next <limits.h>
  33. # else
  34. # include _STLP_NATIVE_C_HEADER(limits.h)
  35. # endif
  36. # else
  37. # include <limits.h>
  38. # endif
  39. #endif
  40. #if (_STLP_OUTERMOST_HEADER_ID == 0x108 )
  41. # include <stl/_epilog.h>
  42. # undef _STLP_OUTERMOST_HEADER_ID
  43. #endif
  44. #endif /* _STLP_CLIMITS */
  45. // Local Variables:
  46. // mode:C++
  47. // End: