Changeset a5777f0 in rtems for cpukit/include


Ignore:
Timestamp:
Apr 13, 2004, 3:15:28 PM (16 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
28b63352
Parents:
bd00319
Message:

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>.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/include/rtems/stdint.h

    rbd00319 ra5777f0  
    1414#endif
    1515
    16 #include <rtems/score/types.h>
     16#include <rtems/score/cpuopts.h>
    1717
     18#if RTEMS_USES_STDINT_H
     19#include <stdint.h>
     20
     21#elif RTEMS_USES_INTTYPES_H
     22#include <inttypes.h>
     23
     24#else
    1825/*
    19  * map RTEMS internal types onto C99 types
     26 * Wild guesses on systems not providing stdint.h nor inttypes.h
     27 * Known to work on Cywgin-1.3
    2028 */
    21 typedef signed8        int8_t;
    22 typedef signed16       int16_t;
    23 typedef signed32       int32_t;
    24 typedef signed64       int64_t;
     29 
     30#include <sys/types.h>
    2531
    26 typedef unsigned8      uint8_t;
    27 typedef unsigned16     uint16_t;
    28 typedef unsigned32     uint32_t;
    29 typedef unsigned64     uint64_t;
     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
    3049
    3150#ifdef __cplusplus
Note: See TracChangeset for help on using the changeset viewer.