mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-01 08:13:18 +00:00
80e2154856
Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
53 lines
1.1 KiB
C
53 lines
1.1 KiB
C
#ifndef __WINE_LIMITS_H
|
|
#define __WINE_LIMITS_H
|
|
|
|
#include <corecrt.h>
|
|
|
|
#define CHAR_BIT 8
|
|
#define MB_LEN_MAX 5
|
|
|
|
#define SCHAR_MIN (-0x80)
|
|
#define SCHAR_MAX 0x7f
|
|
#define UCHAR_MAX 0xff
|
|
|
|
#ifdef __CHAR_UNSIGNED__
|
|
# define CHAR_MIN 0
|
|
# define CHAR_MAX UCHAR_MAX
|
|
#else
|
|
# define CHAR_MIN SCHAR_MIN
|
|
# define CHAR_MAX SCHAR_MAX
|
|
#endif
|
|
|
|
#define SHRT_MIN (-0x8000)
|
|
#define SHRT_MAX 0x7fff
|
|
#define USHRT_MAX 0xffff
|
|
|
|
#define INT_MIN (-0x7fffffff - 1)
|
|
#define INT_MAX 0x7fffffff
|
|
#define UINT_MAX 0xffffffffU
|
|
|
|
#define LONG_MIN (-0x7fffffffL - 1L)
|
|
#define LONG_MAX 0x7fffffffL
|
|
#define ULONG_MAX 0xffffffffUL
|
|
|
|
#define LLONG_MAX 0x7fffffffffffffffLL
|
|
#define LLONG_MIN (-LLONG_MAX-1)
|
|
#define ULLONG_MAX 0xffffffffffffffffULL
|
|
|
|
#define _I64_MAX 0x7fffffffffffffffLL
|
|
#define _I64_MIN (-_I64_MAX-1)
|
|
#define _UI64_MAX 0xffffffffffffffffULL
|
|
|
|
#define I64_MIN _I64_MIN
|
|
#define I64_MAX _I64_MAX
|
|
#define UI64_MAX _UI64_MAX
|
|
|
|
#ifndef SIZE_MAX
|
|
# ifdef _WIN64
|
|
# define SIZE_MAX UI64_MAX
|
|
# else
|
|
# define SIZE_MAX UINT_MAX
|
|
# endif
|
|
#endif
|
|
|
|
#endif /* __WINE_LIMITS_H */
|