4.104.114.84.95
Last change
on this file since 048dcd2b was
a5777f0,
checked in by Ralf Corsepius <ralf.corsepius@…>, on 04/13/04 at 15:15:28
|
2004-04-13 Ralf Corsepius <ralf_corsepius@…>
- configure.ac: Rework stdint.h/inttypes.h support.
Add RTEMS_USES_STDINT_H. Add RTEMS_USES_INTTYPES_H.
Remove NEED_STDINT_H. Remove NEED_INTTYPES_H.
Remove termios-flag detection.
- libcsupport/Makefile.am: Install include/stdint.h and
include/inttypes.h for NEWLIB only.
- libcsupport/include/stdint.h: Rework; Now newlib specific.
- libcsupport/src/termios.c: Make newlib specific.
- include/rtems/stdint.h: Rework; Now wrapper to <stdint.h>.
|
-
Property mode set to
100644
|
File size:
794 bytes
|
Rev | Line | |
---|
[f4e204c] | 1 | /* |
---|
| 2 | * rtems/stdint.h |
---|
| 3 | * |
---|
| 4 | * ISO C99 integer types |
---|
| 5 | * |
---|
| 6 | * $Id$ |
---|
| 7 | */ |
---|
| 8 | |
---|
| 9 | #ifndef __rtems_stdint_h |
---|
| 10 | #define __rtems_stdint_h |
---|
| 11 | |
---|
| 12 | #ifdef __cplusplus |
---|
| 13 | extern "C" { |
---|
| 14 | #endif |
---|
| 15 | |
---|
[a5777f0] | 16 | #include <rtems/score/cpuopts.h> |
---|
[f4e204c] | 17 | |
---|
[a5777f0] | 18 | #if RTEMS_USES_STDINT_H |
---|
| 19 | #include <stdint.h> |
---|
| 20 | |
---|
| 21 | #elif RTEMS_USES_INTTYPES_H |
---|
| 22 | #include <inttypes.h> |
---|
| 23 | |
---|
| 24 | #else |
---|
[f4e204c] | 25 | /* |
---|
[a5777f0] | 26 | * Wild guesses on systems not providing stdint.h nor inttypes.h |
---|
| 27 | * Known to work on Cywgin-1.3 |
---|
[f4e204c] | 28 | */ |
---|
[a5777f0] | 29 | |
---|
| 30 | #include <sys/types.h> |
---|
| 31 | |
---|
| 32 | #if !defined(uint8_t) && defined(__uint8_t) |
---|
| 33 | typedef __uint8_t uint8_t; |
---|
| 34 | #endif |
---|
| 35 | |
---|
| 36 | #if !defined(uint16_t) && defined(__uint16_t) |
---|
| 37 | typedef __uint16_t uint16_t; |
---|
| 38 | #endif |
---|
| 39 | |
---|
| 40 | #if !defined(uint32_t) && defined(__uint32_t) |
---|
| 41 | typedef __uint32_t uint32_t; |
---|
| 42 | #endif |
---|
| 43 | |
---|
| 44 | #if !defined(uint64_t) && defined(__uint64_t) |
---|
| 45 | typedef __uint64_t uint64_t; |
---|
| 46 | #endif |
---|
| 47 | |
---|
| 48 | #endif |
---|
[f4e204c] | 49 | |
---|
| 50 | #ifdef __cplusplus |
---|
| 51 | } |
---|
| 52 | #endif |
---|
| 53 | |
---|
| 54 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.