source: rtems/cpukit/include/rtems/stdint.h @ a5777f0

4.104.114.84.95
Last change on this file since a5777f0 was a5777f0, checked in by Ralf Corsepius <ralf.corsepius@…>, on Apr 13, 2004 at 3:15:28 PM

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
Line 
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
13extern "C" {
14#endif
15
16#include <rtems/score/cpuopts.h>
17
18#if RTEMS_USES_STDINT_H
19#include <stdint.h>
20
21#elif RTEMS_USES_INTTYPES_H
22#include <inttypes.h>
23
24#else
25/*
26 * Wild guesses on systems not providing stdint.h nor inttypes.h
27 * Known to work on Cywgin-1.3
28 */
29 
30#include <sys/types.h>
31
32#if !defined(uint8_t) && defined(__uint8_t)
33typedef __uint8_t uint8_t;
34#endif
35
36#if !defined(uint16_t) && defined(__uint16_t)
37typedef __uint16_t uint16_t;
38#endif
39
40#if !defined(uint32_t) && defined(__uint32_t)
41typedef __uint32_t uint32_t;
42#endif
43
44#if !defined(uint64_t) && defined(__uint64_t)
45typedef __uint64_t uint64_t;
46#endif
47
48#endif
49
50#ifdef __cplusplus
51}
52#endif
53
54#endif
Note: See TracBrowser for help on using the repository browser.