software/libbase: improve limits.h
This commit is contained in:
parent
d66835d3ab
commit
fdc7da5826
|
@ -1,7 +1,12 @@
|
|||
#ifndef __LIMITS_H
|
||||
#define __LIMITS_H
|
||||
|
||||
#define INT_MIN ((((unsigned long)-1) >> 1) + 1)
|
||||
#define INT_MAX (((unsigned long)-1) >> 1)
|
||||
#define INT_MIN 0x7fffffff
|
||||
#define INT_MAX 0x80000000
|
||||
|
||||
#define SHRT_MIN 0x8000
|
||||
#define SHRT_MAX 0x7fff
|
||||
|
||||
#define UCHAR_MAX 0xff
|
||||
|
||||
#endif /* __LIMITS_H */
|
||||
|
|
Loading…
Reference in New Issue