* glimits.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define for C99.
From-SVN: r35088
This commit is contained in:
parent
49419c8f9e
commit
0c96ce220d
@ -28,6 +28,8 @@ Mon Jul 17 02:37:06 2000 Marc Espie <espie@openbsd.org>
|
|||||||
|
|
||||||
2000-07-17 Joseph S. Myers <jsm28@cam.ac.uk>
|
2000-07-17 Joseph S. Myers <jsm28@cam.ac.uk>
|
||||||
|
|
||||||
|
* glimits.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define for C99.
|
||||||
|
|
||||||
* contrib.texi, cpp.texi, extend.texi, invoke.texi: Update
|
* contrib.texi, cpp.texi, extend.texi, invoke.texi: Update
|
||||||
references to C9X. Change references to -fstd and -flang-isoc9x
|
references to C9X. Change references to -fstd and -flang-isoc9x
|
||||||
to refer to -std.
|
to refer to -std.
|
||||||
|
@ -79,11 +79,24 @@
|
|||||||
#undef ULONG_MAX
|
#undef ULONG_MAX
|
||||||
#define ULONG_MAX (LONG_MAX * 2UL + 1)
|
#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__
|
#ifndef __LONG_LONG_MAX__
|
||||||
#define __LONG_LONG_MAX__ 9223372036854775807LL
|
#define __LONG_LONG_MAX__ 9223372036854775807LL
|
||||||
#endif
|
#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
|
||||||
|
|
||||||
|
#if defined (__GNU_LIBRARY__) ? defined (__USE_GNU) : !defined (__STRICT_ANSI__)
|
||||||
|
/* Minimum and maximum values a `signed long long int' can hold. */
|
||||||
#undef LONG_LONG_MIN
|
#undef LONG_LONG_MIN
|
||||||
#define LONG_LONG_MIN (-LONG_LONG_MAX-1)
|
#define LONG_LONG_MIN (-LONG_LONG_MAX-1)
|
||||||
#undef LONG_LONG_MAX
|
#undef LONG_LONG_MAX
|
||||||
|
Loading…
Reference in New Issue
Block a user