diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2002-02-15 21:19:40 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2002-02-15 21:19:40 +0000 |
commit | ba0173f0f9da8d4c0b43da0521e4a01d7c0933be (patch) | |
tree | c172b67ed51d4f5b0bf98d3aa7b812e8608203f6 | |
parent | 08618b6f92084af5d5c340b648dbf5c9fc1c3812 (diff) | |
download | newlib-ba0173f0f9da8d4c0b43da0521e4a01d7c0933be.zip newlib-ba0173f0f9da8d4c0b43da0521e4a01d7c0933be.tar.gz newlib-ba0173f0f9da8d4c0b43da0521e4a01d7c0933be.tar.bz2 |
2002-02-15 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/sys/config.h: Add definitions for
__int16_t, __uint16_t, __int64_t, and __uint64_t.
-rw-r--r-- | newlib/ChangeLog | 5 | ||||
-rw-r--r-- | newlib/libc/include/sys/config.h | 11 |
2 files changed, 16 insertions, 0 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog index f837dda..e39d7db 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,8 @@ +2002-02-15 Jeff Johnston <jjohnstn@redhat.com> + + * libc/include/sys/config.h: Add definitions for + __int16_t, __uint16_t, __int64_t, and __uint64_t. + 2002-02-12 Hans-Peter Nilsson <hp@bitrange.com> * libc/sys/mmixware/link.c: New. diff --git a/newlib/libc/include/sys/config.h b/newlib/libc/include/sys/config.h index a192745..dcde26a 100644 --- a/newlib/libc/include/sys/config.h +++ b/newlib/libc/include/sys/config.h @@ -126,6 +126,9 @@ #define _REENT_SMALL #endif +typedef short int __int16_t; +typedef unsigned short int __uint16_t; + #if INT_MAX == 32767 typedef long int __int32_t; typedef unsigned long int __uint32_t; @@ -134,6 +137,14 @@ typedef int __int32_t; typedef unsigned int __uint32_t; #endif +#if LONG_MAX > 2147483647 || !defined(__GNUC__) +typedef long int __int64_t; +typedef unsigned long int __uint64_t; +#else +typedef long long __int64_t; +typedef unsigned long long __uint64_t; +#endif + #ifndef _POINTER_INT #define _POINTER_INT long #endif |