summaryrefslogtreecommitdiff
path: root/gcc/glimits.h
diff options
context:
space:
mode:
authorDoug Evans <dje@gnu.org>1993-09-29 21:31:49 +0000
committerDoug Evans <dje@gnu.org>1993-09-29 21:31:49 +0000
commitd91f5bfa6b05179eee3b021bba320b466b969318 (patch)
tree1ff394fe22f69eed6238fea6ad3d4aa5ea0278e2 /gcc/glimits.h
parent94e21bd7ba9261f5ec55a55559c5f73fc51e680f (diff)
downloadgcc-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.h8
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_ */