2003-09-02 02:58:21 +02:00
|
|
|
#ifndef __WINE_LIMITS_H
|
|
|
|
#define __WINE_LIMITS_H
|
|
|
|
|
2008-12-11 22:37:34 +01:00
|
|
|
#include <crtdefs.h>
|
|
|
|
|
2004-04-03 01:28:31 +02:00
|
|
|
#define CHAR_BIT 8
|
2015-02-03 00:14:59 +01:00
|
|
|
#define MB_LEN_MAX 5
|
2003-09-02 02:58:21 +02:00
|
|
|
|
2004-04-03 01:28:31 +02:00
|
|
|
#define SCHAR_MIN (-0x80)
|
|
|
|
#define SCHAR_MAX 0x7f
|
|
|
|
#define UCHAR_MAX 0xff
|
2003-09-02 02:58:21 +02:00
|
|
|
|
2004-04-03 01:28:31 +02:00
|
|
|
#ifdef __CHAR_UNSIGNED__
|
|
|
|
# define CHAR_MIN 0
|
|
|
|
# define CHAR_MAX UCHAR_MAX
|
|
|
|
#else
|
|
|
|
# define CHAR_MIN SCHAR_MIN
|
|
|
|
# define CHAR_MAX SCHAR_MAX
|
2003-09-02 02:58:21 +02:00
|
|
|
#endif
|
|
|
|
|
2004-04-03 01:28:31 +02:00
|
|
|
#define SHRT_MIN (-0x8000)
|
|
|
|
#define SHRT_MAX 0x7fff
|
|
|
|
#define USHRT_MAX 0xffff
|
|
|
|
|
|
|
|
#define INT_MIN (-0x80000000)
|
|
|
|
#define INT_MAX 0x7fffffff
|
|
|
|
#define UINT_MAX 0xffffffff
|
|
|
|
|
|
|
|
#define LONG_MIN (-0x80000000L)
|
|
|
|
#define LONG_MAX 0x7fffffffL
|
|
|
|
#define ULONG_MAX 0xffffffffUL
|
|
|
|
|
|
|
|
#define _I64_MAX (((__int64)0x7fffffff << 32) | 0xffffffff)
|
|
|
|
#define _I64_MIN (-_I64_MAX-1)
|
|
|
|
#define _UI64_MAX (((unsigned __int64)0xffffffff << 32) | 0xffffffff)
|
|
|
|
|
|
|
|
#define I64_MIN _I64_MIN
|
|
|
|
#define I64_MAX _I64_MAX
|
|
|
|
#define UI64_MAX _UI64_MAX
|
|
|
|
|
2012-12-12 11:14:48 +01:00
|
|
|
#ifndef SIZE_MAX
|
|
|
|
# ifdef _WIN64
|
|
|
|
# define SIZE_MAX UI64_MAX
|
|
|
|
# else
|
|
|
|
# define SIZE_MAX UINT_MAX
|
|
|
|
# endif
|
|
|
|
#endif
|
|
|
|
|
2003-09-02 02:58:21 +02:00
|
|
|
#endif /* __WINE_LIMITS_H */
|