msvcrt: Import log1pf implementation from musl.
[wine.git] / include / msvcrt / limits.h
blob1119a96326584403532f72887fe1eca7abd7825b
1 #ifndef __WINE_LIMITS_H
2 #define __WINE_LIMITS_H
4 #include <corecrt.h>
6 #define CHAR_BIT 8
7 #define MB_LEN_MAX 5
9 #define SCHAR_MIN (-0x80)
10 #define SCHAR_MAX 0x7f
11 #define UCHAR_MAX 0xff
13 #ifdef __CHAR_UNSIGNED__
14 # define CHAR_MIN 0
15 # define CHAR_MAX UCHAR_MAX
16 #else
17 # define CHAR_MIN SCHAR_MIN
18 # define CHAR_MAX SCHAR_MAX
19 #endif
21 #define SHRT_MIN (-0x8000)
22 #define SHRT_MAX 0x7fff
23 #define USHRT_MAX 0xffff
25 #define INT_MIN (-0x7fffffff - 1)
26 #define INT_MAX 0x7fffffff
27 #define UINT_MAX 0xffffffffU
29 #define LONG_MIN (-0x7fffffffL - 1L)
30 #define LONG_MAX 0x7fffffffL
31 #define ULONG_MAX 0xffffffffUL
33 #define LLONG_MAX 0x7fffffffffffffffLL
34 #define LLONG_MIN (-LLONG_MAX-1)
35 #define ULLONG_MAX 0xffffffffffffffffULL
37 #define _I64_MAX 0x7fffffffffffffffLL
38 #define _I64_MIN (-_I64_MAX-1)
39 #define _UI64_MAX 0xffffffffffffffffULL
41 #define I64_MIN _I64_MIN
42 #define I64_MAX _I64_MAX
43 #define UI64_MAX _UI64_MAX
45 #ifndef SIZE_MAX
46 # ifdef _WIN64
47 # define SIZE_MAX UI64_MAX
48 # else
49 # define SIZE_MAX UINT_MAX
50 # endif
51 #endif
53 #endif /* __WINE_LIMITS_H */