diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2005-10-28 09:25:27 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2005-10-28 09:25:27 +0000 |
commit | ce661e68db3c2bf47bceff4358e8c898f4685ad6 (patch) | |
tree | 04954faf02fde82945f9d46819efe4071b3f71f4 /cpukit | |
parent | 2005-10-28 Ralf Corsepius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-ce661e68db3c2bf47bceff4358e8c898f4685ad6.tar.bz2 |
Use uint_least*_t types.
Diffstat (limited to 'cpukit')
-rw-r--r-- | cpukit/zlib/zconf.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/cpukit/zlib/zconf.h b/cpukit/zlib/zconf.h index 55319ef348..ea939082ab 100644 --- a/cpukit/zlib/zconf.h +++ b/cpukit/zlib/zconf.h @@ -255,11 +255,20 @@ # define FAR #endif +#if defined(__rtems__) +#include <rtems/stdint.h> + +typedef uint_least8_t Byte; +typedef uint_least16_t uInt; +typedef uint_least32_t uLong; + +#else #if !defined(__MACTYPES__) typedef unsigned char Byte; /* 8 bits */ #endif typedef unsigned int uInt; /* 16 bits or more */ typedef unsigned long uLong; /* 32 bits or more */ +#endif #ifdef SMALL_MEDIUM /* Borland C/C++ and some old MSC versions ignore FAR inside typedef */ |