Changeset bffdb82 in rtems
- Timestamp:
- 11/05/04 11:34:49 (19 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- 1c89b86
- Parents:
- 9bb5b9d
- Location:
- cpukit
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/ChangeLog
r9bb5b9d rbffdb82 1 2004-11-05 Ralf Corsepius <ralf_corsepiu@rtems.org> 2 3 * configure.ac: Remove RTEMS_USES_INTTYPES_H. Require inttypes.h. 4 * include/rtems/stdint.h: Remove "wild guesses", require inttypes.h. 5 * libcsupport/include/inttypes.h: Cleanup. 6 * libcsupport/include/stdint.h: Cleanup. 7 1 8 2004-11-04 Ralf Corsepius <ralf_corsepiu@rtems.org> 2 9 -
cpukit/configure.ac
r9bb5b9d rbffdb82 90 90 91 91 ## Check if the installed toolchain has these headers 92 AC_CHECK_HEADER(stdint.h) 93 AC_CHECK_HEADER(inttypes.h) 94 95 AS_IF([test x"${RTEMS_USE_NEWLIB}" = x"yes"],[ 96 RTEMS_USES_STDINT_H=yes 97 RTEMS_USES_INTTYPES_H=yes],[ 98 RTEMS_USES_STDINT_H=$ac_cv_header_stdint_h 99 RTEMS_USES_INTTYPES_H=$ac_cv_header_inttypes_h 100 ]) 101 102 AM_CONDITIONAL(RTEMS_PROVIDES_STDINT_H, 103 [test x"${RTEMS_USE_NEWLIB}" = x"yes" \ 104 && test x"$ac_cv_header_stdint_h" = xno]) 105 AM_CONDITIONAL(RTEMS_PROVIDES_INTTYPES_H, 106 [test x"${RTEMS_USE_NEWLIB}" = x"yes" \ 107 && test x"$ac_cv_header_inttypes_h" = xno]) 92 AC_CHECK_HEADER([stdint.h]) 93 AC_CHECK_HEADER([inttypes.h]) 94 95 ## if using newlib, we provide stdint.h and inttypes.h 96 AM_CONDITIONAL([RTEMS_PROVIDES_STDINT_H],[test x"${RTEMS_USE_NEWLIB}" = xyes]) 97 AM_CONDITIONAL([RTEMS_PROVIDES_INTTYPES_H],[test x"${RTEMS_USE_NEWLIB}" = xyes]) 98 99 ## if using newlib, force using stdint.h 100 AS_IF([test x"${RTEMS_USE_NEWLIB}" = xyes], 101 [RTEMS_USES_STDINT_H=yes], 102 [RTEMS_USES_STDINT_H=$ac_cv_header_stdint_h]) 108 103 109 104 AS_IF([test x"${RTEMS_CPU}" = x"unix"],[ … … 181 176 [1], 182 177 [if RTEMS uses stdint.h]) 183 184 RTEMS_CPUOPT([RTEMS_USES_INTTYPES_H],185 [test x"${RTEMS_USES_INTTYPES_H}" = x"yes"],186 [1],187 [if RTEMS uses inttypes.h])188 178 189 179 RTEMS_CPUOPT([RTEMS_VERSION], -
cpukit/include/rtems/stdint.h
r9bb5b9d rbffdb82 1 /* 2 * rtems/stdint.h1 /** 2 * @file rtems/stdint.h 3 3 * 4 * ISO C99 integer types 5 * 4 * Wrapper to <stdint.h>, switching to <inttypes.h> on systems 5 * only having <inttypes.h> (e.g. Solaris-5.7). 6 */ 7 8 /* 6 9 * $Id$ 7 10 */ … … 10 13 #define __rtems_stdint_h 11 14 12 #ifdef __cplusplus13 extern "C" {14 #endif15 16 15 #include <rtems/score/cpuopts.h> 17 16 … … 19 18 #include <stdint.h> 20 19 21 #el if RTEMS_USES_INTTYPES_H20 #else 22 21 #include <inttypes.h> 23 24 #else25 /*26 * Wild guesses on systems not providing stdint.h nor inttypes.h27 * Known to work on Cywgin-1.328 */29 30 #include <sys/types.h>31 32 #if !defined(uint8_t) && defined(__uint8_t)33 typedef __uint8_t uint8_t;34 #endif35 36 #if !defined(uint16_t) && defined(__uint16_t)37 typedef __uint16_t uint16_t;38 #endif39 40 #if !defined(uint32_t) && defined(__uint32_t)41 typedef __uint32_t uint32_t;42 #endif43 44 #if !defined(uint64_t) && defined(__uint64_t)45 typedef __uint64_t uint64_t;46 22 #endif 47 23 48 24 #endif 49 50 #ifdef __cplusplus51 }52 #endif53 54 #endif -
cpukit/libcsupport/include/inttypes.h
r9bb5b9d rbffdb82 2 2 * @file inttypes.h 3 3 */ 4 4 5 5 /* 6 * ISO C99 Format conversion of integer types.7 *8 6 * $Id$ 9 7 */ … … 12 10 #define __INTTYPES_H 13 11 14 #ifdef __cplusplus15 extern "C" {16 #endif17 18 12 #include <stdint.h> 19 13 #include <sys/_inttypes.h> 20 14 21 #ifdef __cplusplus22 }23 15 #endif 24 25 #endif -
cpukit/libcsupport/include/stdint.h
r9bb5b9d rbffdb82 4 4 5 5 /* 6 * ISO C99 integer types7 *8 6 * $Id$ 9 7 */ … … 12 10 #define __STDINT_H 13 11 14 #ifdef __cplusplus15 extern "C" {16 #endif17 18 12 #include <sys/_stdint.h> 19 13 20 #ifdef __cplusplus21 }22 14 #endif 23 24 #endif
Note: See TracChangeset
for help on using the changeset viewer.