home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Misc / DC-POS24.LZX / pOS / pOSxA.lzx / pOSxA / limits.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-03-12  |  585 b   |  32 lines

  1. #ifndef __LIMITS_H
  2. #define __LIMITS_H
  3.  
  4. #define    CHAR_BIT    8
  5. #define    SCHAR_MIN    -127
  6. #define SCHAR_MAX    +127
  7. #define UCHAR_MAX    255U
  8. #define    CHAR_MIN    SCHAR_MIN
  9. #define CHAR_MAX    SCHAR_MAX
  10. #ifndef MB_LEN_MAX
  11. #define    MB_LEN_MAX    1
  12. #endif
  13. #define    SHRT_MIN    -32767
  14. #define SHRT_MAX    +32767
  15. #define USHRT_MAX    65535U
  16. #define LONG_MIN    -2147483647
  17. #define LONG_MAX    +2147483647
  18. #define ULONG_MAX    4294967295U
  19.  
  20. #ifdef _INT32
  21. #define INT_MIN        -2147483647
  22. #define INT_MAX        +2147483647
  23. #define UINT_MAX    4294967295U
  24. #else
  25. #define INT_MIN        -32767
  26. #define    INT_MAX        +32767
  27. #define UINT_MAX    65535U
  28. #endif
  29.  
  30. #endif
  31.  
  32.