diff options
author | Eric Andersen <andersen@codepoet.org> | 2002-04-01 11:44:34 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2002-04-01 11:44:34 +0000 |
commit | 193d725142ec7f946088890e0654a11db0c3c6c8 (patch) | |
tree | 2fca0a6bc97debf90869e029f623f22a2cf3acde /include | |
parent | 556cb45061f0c89831972fc6c8554d3b108c3009 (diff) |
Patches from Yoshinori Sato <qzb04471@nifty.ne.jp> to fix h8300
support for pthreads and update for the latest and greatest.
Diffstat (limited to 'include')
-rw-r--r-- | include/stdint.h | 10 |
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. */ |