diff options
author | dje <dje@138bc75d-0d04-0410-961f-82ee72b054a4> | 1993-09-29 21:31:49 +0000 |
---|---|---|
committer | dje <dje@138bc75d-0d04-0410-961f-82ee72b054a4> | 1993-09-29 21:31:49 +0000 |
commit | c8345acd862ca0d3f258a81bb2eb424fcae8ba2e (patch) | |
tree | 1ff394fe22f69eed6238fea6ad3d4aa5ea0278e2 /gcc/glimits.h | |
parent | c80484de1111d5b267aa2cfbdc035d9e0e95dc28 (diff) | |
download | gcc-c8345acd862ca0d3f258a81bb2eb424fcae8ba2e.tar.gz |
(UINT_MAX, ULONG_MAX, ULONG_LONG_MAX): redefine in a simpler way.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@5532 138bc75d-0d04-0410-961f-82ee72b054a4
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_ */ |