mirror of
https://github.com/UberGames/ioef.git
synced 2024-12-13 22:21:06 +00:00
25 lines
480 B
C
25 lines
480 B
C
|
#ifndef __LIMITS
|
||
|
#define __LIMITS
|
||
|
|
||
|
#define CHAR_BIT 8
|
||
|
#define MB_LEN_MAX 1
|
||
|
|
||
|
#define UCHAR_MAX 0xff
|
||
|
#define USHRT_MAX 0xffff
|
||
|
#define UINT_MAX (~0U)
|
||
|
#define ULONG_MAX (~0UL)
|
||
|
|
||
|
#define CHAR_MAX SCHAR_MAX
|
||
|
#define SCHAR_MAX 0x7f
|
||
|
#define SHRT_MAX 0x7fff
|
||
|
#define INT_MAX 0x7fffffff
|
||
|
#define LONG_MAX 0x7fffffffL
|
||
|
|
||
|
#define CHAR_MIN SCHAR_MIN
|
||
|
#define SCHAR_MIN (-SCHAR_MAX-1)
|
||
|
#define SHRT_MIN (-SHRT_MAX-1)
|
||
|
#define INT_MIN (-INT_MAX-1)
|
||
|
#define LONG_MIN (-LONG_MAX-1)
|
||
|
|
||
|
#endif /* __LIMITS */
|