diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2003-05-27 16:17:31 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2003-05-27 16:17:31 +0000 |
commit | f4e204cbfa3850a8938f524121e1ca31ca55c60f (patch) | |
tree | 033ea7fbbd9ee52b9e45f32102cab88fbbc4afb7 /cpukit/include | |
parent | 2003-05-27 Ralf Corsepius <corsepiu@faw.uni-ulm.de> (diff) | |
download | rtems-f4e204cbfa3850a8938f524121e1ca31ca55c60f.tar.bz2 |
2003-05-27 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
PR 409:
* include/Makefile.am: Add rtems/stdint.h
* include/rtems/stdint.h: New.
Diffstat (limited to '')
-rw-r--r-- | cpukit/include/Makefile.am | 3 | ||||
-rw-r--r-- | cpukit/include/rtems/stdint.h | 35 |
2 files changed, 37 insertions, 1 deletions
diff --git a/cpukit/include/Makefile.am b/cpukit/include/Makefile.am index c47b90bfa3..ddb913991a 100644 --- a/cpukit/include/Makefile.am +++ b/cpukit/include/Makefile.am @@ -16,7 +16,8 @@ PREINSTALL_FILES = $(PROJECT_INCLUDE) \ $(include_HEADERS:%=$(PROJECT_INCLUDE)/%) include_rtemsdir = $(includedir)/rtems -include_rtems_HEADERS = rtems/bspIo.h rtems/userenv.h rtems/fs.h +include_rtems_HEADERS = rtems/bspIo.h rtems/userenv.h rtems/fs.h \ + rtems/stdint.h PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems \ $(include_rtems_HEADERS:%=$(PROJECT_INCLUDE)/%) diff --git a/cpukit/include/rtems/stdint.h b/cpukit/include/rtems/stdint.h new file mode 100644 index 0000000000..0922d45d1c --- /dev/null +++ b/cpukit/include/rtems/stdint.h @@ -0,0 +1,35 @@ +/* + * rtems/stdint.h + * + * ISO C99 integer types + * + * $Id$ + */ + +#ifndef __rtems_stdint_h +#define __rtems_stdint_h + +#ifdef __cplusplus +extern "C" { +#endif + +#include <rtems/score/types.h> + +/* + * map RTEMS internal types onto C99 types + */ +typedef signed8 int8_t; +typedef signed16 int16_t; +typedef signed32 int32_t; +typedef signed64 int64_t; + +typedef unsigned8 uint8_t; +typedef unsigned16 uint16_t; +typedef unsigned32 uint32_t; +typedef unsigned64 uint64_t; + +#ifdef __cplusplus +} +#endif + +#endif |