1 #ifndef __WINE_LIMITS_H
2 #define __WINE_LIMITS_H
9 #define SCHAR_MIN (-0x80)
10 #define SCHAR_MAX 0x7f
11 #define UCHAR_MAX 0xff
13 #ifdef __CHAR_UNSIGNED__
15 # define CHAR_MAX UCHAR_MAX
17 # define CHAR_MIN SCHAR_MIN
18 # define CHAR_MAX SCHAR_MAX
21 #define SHRT_MIN (-0x8000)
22 #define SHRT_MAX 0x7fff
23 #define USHRT_MAX 0xffff
25 #define INT_MIN (-0x80000000)
26 #define INT_MAX 0x7fffffff
27 #define UINT_MAX 0xffffffff
29 #define LONG_MIN (-0x80000000L)
30 #define LONG_MAX 0x7fffffffL
31 #define ULONG_MAX 0xffffffffUL
33 #define _I64_MAX (((__int64)0x7fffffff << 32) | 0xffffffff)
34 #define _I64_MIN (-_I64_MAX-1)
35 #define _UI64_MAX (((unsigned __int64)0xffffffff << 32) | 0xffffffff)
37 #define I64_MIN _I64_MIN
38 #define I64_MAX _I64_MAX
39 #define UI64_MAX _UI64_MAX
43 # define SIZE_MAX UI64_MAX
45 # define SIZE_MAX UINT_MAX
49 #endif /* __WINE_LIMITS_H */