summaryrefslogtreecommitdiff
path: root/include/stdint.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/stdint.h')
-rw-r--r--include/stdint.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/stdint.h b/include/stdint.h
index 6da4d0d71..cfd11d4f2 100644
--- a/include/stdint.h
+++ b/include/stdint.h
@@ -240,7 +240,7 @@ typedef unsigned long long int uintmax_t;
# define UINTPTR_MAX (4294967295U)
# endif
-
+#if !defined(__H8300H__) && !defined(__H8300S__)
/* Minimum for largest signed integral type. */
# define INTMAX_MIN (-__INT64_C(9223372036854775807)-1)
/* Maximum for largest signed integral type. */
@@ -248,7 +248,15 @@ typedef unsigned long long int uintmax_t;
/* Maximum for largest unsigned integral type. */
# define UINTMAX_MAX (__UINT64_C(18446744073709551615))
+#else
+/* Minimum for largest signed integral type. */
+# define INTMAX_MIN (-LONG_LONG_MAX-1)
+/* Maximum for largest signed integral type. */
+# define INTMAX_MAX (LONG_LONG_MAX)
+/* Maximum for largest unsigned integral type. */
+# define UINTMAX_MAX (LONG_LONG_MAX<<1+1)
+#endif
/* Limits of other integer types. */