4.104.114.84.95
Line | |
---|
1 | /** |
---|
2 | * @file rtems/stdint.h |
---|
3 | * |
---|
4 | * Wrapper to <stdint.h>, switching to <inttypes.h> on systems |
---|
5 | * only having <inttypes.h> (e.g. Solaris-5.7). |
---|
6 | */ |
---|
7 | |
---|
8 | /* |
---|
9 | * $Id$ |
---|
10 | */ |
---|
11 | |
---|
12 | #ifndef _RTEMS_STDINT_H |
---|
13 | #define _RTEMS_STDINT_H |
---|
14 | |
---|
15 | #include <rtems/score/cpuopts.h> |
---|
16 | |
---|
17 | #if RTEMS_USES_STDINT_H |
---|
18 | #include <stdint.h> |
---|
19 | |
---|
20 | #else |
---|
21 | #include <inttypes.h> |
---|
22 | #endif |
---|
23 | |
---|
24 | typedef uint8_t unsigned8; /* unsigned 8-bit integer */ |
---|
25 | typedef uint16_t unsigned16; /* unsigned 16-bit integer */ |
---|
26 | typedef uint32_t unsigned32; /* unsigned 32-bit integer */ |
---|
27 | #if 0 |
---|
28 | typedef uint64_t unsigned64; /* unsigned 64-bit integer */ |
---|
29 | #endif |
---|
30 | |
---|
31 | typedef int8_t signed8; /* signed 8-bit integer */ |
---|
32 | typedef int16_t signed16; /* signed 16-bit integer */ |
---|
33 | typedef int32_t signed32; /* signed 32-bit integer */ |
---|
34 | #if 0 |
---|
35 | typedef int64_t signed64; /* signed 64-bit integer */ |
---|
36 | #endif |
---|
37 | |
---|
38 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.