diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2004-10-29 10:13:02 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2004-10-29 10:13:02 +0000 |
commit | b24b4eb06b081b8feae1be7b61ddc342dd6bd540 (patch) | |
tree | b35af3c88535612cc9838a8a9d46a900b6fd871f /cpukit/libcsupport/include/rtems/_stdint.h | |
parent | 2004-10-28 Joel Sherrill <joel@OARcorp.com> (diff) | |
download | rtems-b24b4eb06b081b8feae1be7b61ddc342dd6bd540.tar.bz2 |
2004-10-28 Ralf Corsepius <ralf_corsepius@rtems.org>
* libcsupport/include/rtems/_inttypes.h: Remove.
* libcsupport/include/rtems/_stdint.h: Remove.
* libcsupport/include/sys/_inttypes.h: New.
* libcsupport/include/sys/_stdint.h: New.
* libcsupport/Makefile.am: Reflect changes above.
Diffstat (limited to 'cpukit/libcsupport/include/rtems/_stdint.h')
-rw-r--r-- | cpukit/libcsupport/include/rtems/_stdint.h | 88 |
1 files changed, 0 insertions, 88 deletions
diff --git a/cpukit/libcsupport/include/rtems/_stdint.h b/cpukit/libcsupport/include/rtems/_stdint.h deleted file mode 100644 index 70705055d8..0000000000 --- a/cpukit/libcsupport/include/rtems/_stdint.h +++ /dev/null @@ -1,88 +0,0 @@ -/* - * COPYRIGHT (c) 2004. - * Ralf Corsepius, Ulm/Germany. - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.org/license/LICENSE. - * - * $Id$ - */ - -#ifndef __rtems__stdint_h -#define __rtems__stdint_h - -#ifdef __cplusplus -extern "C" { -#endif - -#if defined(__GNUC__) && (__GNUC__ >= 3 ) \ - && defined(__GNUC_MINOR__) && (__GNUC_MINOR__ > 2 ) -#define __EXP(x) __##x##__ -#else -#define __EXP(x) x -#include <limits.h> -#endif - -#if __EXP(SCHAR_MAX) == 0x7f -typedef signed char __rtems_int8_t ; -typedef unsigned char __rtems_uint8_t ; -#define __rtems_int8_t_defined 1 -#endif - -#if __EXP(INT_MAX) == 0x7fff -typedef signed int __rtems_int16_t; -typedef unsigned int __rtems_uint16_t; -#define __rtems_int16_t_defined 1 -#elif __EXP(SHRT_MAX) == 0x7fff -typedef signed short __rtems_int16_t; -typedef unsigned short __rtems_uint16_t; -#define __rtems_int16_t_defined 1 -#elif __EXP(SCHAR_MAX) == 0x7fff -typedef signed char __rtems_int32_t; -typedef unsigned char __rtems_uint32_t; -#define __rtems_int16_t_defined 1 -#endif - -#if __EXP(INT_MAX) == 0x7fffffff -typedef signed int __rtems_int32_t; -typedef unsigned int __rtems_uint32_t; -#define __rtems_int32_t_defined 1 -#elif __EXP(LONG_MAX) == 0x7fffffff -typedef signed long __rtems_int32_t; -typedef unsigned long __rtems_uint32_t; -#define __rtems_int32_t_defined 1 -#define __rtems_long32 1 -#elif __EXP(SHRT_MAX) == 0x7fffffff -typedef signed short __rtems_int32_t; -typedef unsigned short __rtems_uint32_t; -#define __rtems_int32_t_defined 1 -#elif __EXP(SCHAR_MAX) == 0x7fffffff -typedef signed char __rtems_int32_t; -typedef unsigned char __rtems_uint32_t; -#define __rtems_int32_t_defined 1 -#endif - -#if __EXP(LONG_MAX) == 0x7fffffffffffffff -typedef signed long int __rtems_int64_t; -typedef unsigned long int __rtems_uint64_t; -#define __rtems_int64_t_defined 1 -#define __rtems_long64 1 -#elif __EXP(LONG_LONG_MAX) == 0x7fffffffffffffff -typedef signed long int __rtems_int64_t; -typedef unsigned long int __rtems_uint64_t; -#define __rtems_int64_t_defined 1 -#define __rtems_longlong64 1 -#elif __EXP(INT_MAX) == 0x7fffffffffffffff -typedef signed int __rtems_int64_t; -typedef unsigned int __rtems_uint64_t; -#define __rtems_int64_t_defined 1 -#endif - -#undef __EXP - -#ifdef __cplusplus -} -#endif - -#endif /* __rtems__stdint_h */ |