diff options
author | Doug Evans <dje@gnu.org> | 1993-09-29 21:31:49 +0000 |
---|---|---|
committer | Doug Evans <dje@gnu.org> | 1993-09-29 21:31:49 +0000 |
commit | d91f5bfa6b05179eee3b021bba320b466b969318 (patch) | |
tree | 1ff394fe22f69eed6238fea6ad3d4aa5ea0278e2 /gcc/glimits.h | |
parent | 94e21bd7ba9261f5ec55a55559c5f73fc51e680f (diff) | |
download | gcc-d91f5bfa6b05179eee3b021bba320b466b969318.tar.gz |
(UINT_MAX, ULONG_MAX, ULONG_LONG_MAX): redefine in a simpler way.
From-SVN: r5532
Diffstat (limited to 'gcc/glimits.h')
-rw-r--r-- | gcc/glimits.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/gcc/glimits.h b/gcc/glimits.h index 745080b56e1..ff25a97ace3 100644 --- a/gcc/glimits.h +++ b/gcc/glimits.h @@ -58,9 +58,7 @@ /* Maximum value an `unsigned int' can hold. (Minimum is 0). */ #undef UINT_MAX -#define __glimits__evconcat__(x, y) __glimits__concat__ (x, y) -#define __glimits__concat__(x, y) x##y -#define UINT_MAX (__glimits__evconcat__ (INT_MAX, U) * 2 + 1) +#define UINT_MAX (INT_MAX * 2U + 1) /* Minimum and maximum values a `signed long int' can hold. (Same as `int'). */ @@ -74,7 +72,7 @@ /* Maximum value an `unsigned long int' can hold. (Minimum is 0). */ #undef ULONG_MAX -#define ULONG_MAX (__glimits__evconcat__ (LONG_MAX, U) * 2 + 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. */ @@ -88,7 +86,7 @@ /* Maximum value an `unsigned long long int' can hold. (Minimum is 0). */ #undef ULONG_LONG_MAX -#define ULONG_LONG_MAX (__glimits__evconcat__ (LONG_LONG_MAX, U) * 2 + 1) +#define ULONG_LONG_MAX (LONG_LONG_MAX * 2ULL + 1) #endif #endif /* _MACH_MACHLIMITS_H_ */ |