* include/limits.h: Define LLONG_MIN, LLONG_MAX, ULLONG_MAX.

This commit is contained in:
Christopher Faylor 2001-12-17 01:41:07 +00:00
parent dbc4d51c73
commit a318eb217d
2 changed files with 18 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2001-12-16 David Billinghurst <David.Billinghurst@riotinto.com>
* include/limits.h: Define LLONG_MIN, LLONG_MAX, ULLONG_MAX.
2001-12-11 Christopher Faylor <cgf@redhat.com>
* include/getopt.h: Add HAVE_DECL_GETOPT to save pain elsewhere.

View File

@ -88,11 +88,12 @@ details. */
#undef ULONG_MAX
#define ULONG_MAX (LONG_MAX * 2UL + 1)
#if defined (__GNU_LIBRARY__) ? defined (__USE_GNU) : !defined (__STRICT_ANSI__)
/* Minimum and maximum values a `signed long long int' can hold. */
#ifndef __LONG_LONG_MAX__
#define __LONG_LONG_MAX__ 9223372036854775807LL
#endif
#if defined (__GNU_LIBRARY__) ? defined (__USE_GNU) : !defined (__STRICT_ANSI__)
#undef LONG_LONG_MIN
#define LONG_LONG_MIN (-LONG_LONG_MAX-1)
#undef LONG_LONG_MAX
@ -103,6 +104,18 @@ details. */
#define ULONG_LONG_MAX (LONG_LONG_MAX * 2ULL + 1)
#endif
#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
/* Minimum and maximum values a `signed long long int' can hold. */
#undef LLONG_MIN
#define LLONG_MIN (-LLONG_MAX-1)
#undef LLONG_MAX
#define LLONG_MAX __LONG_LONG_MAX__
/* Maximum value an `unsigned long long int' can hold. (Minimum is 0). */
#undef ULLONG_MAX
#define ULLONG_MAX (LLONG_MAX * 2ULL + 1)
#endif
/* Maximum number of iovcnt in a writev */
#undef IOV_MAX
#define IOV_MAX (__INT_MAX__-1)