summaryrefslogtreecommitdiffstats
path: root/cpukit/include
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/include')
-rw-r--r--cpukit/include/rtems/stdint.h46
1 files changed, 8 insertions, 38 deletions
diff --git a/cpukit/include/rtems/stdint.h b/cpukit/include/rtems/stdint.h
index 5703f4273f..3abdcc4109 100644
--- a/cpukit/include/rtems/stdint.h
+++ b/cpukit/include/rtems/stdint.h
@@ -1,54 +1,24 @@
-/*
- * rtems/stdint.h
- *
- * ISO C99 integer types
+/**
+ * @file rtems/stdint.h
*
+ * Wrapper to <stdint.h>, switching to <inttypes.h> on systems
+ * only having <inttypes.h> (e.g. Solaris-5.7).
+ */
+
+/*
* $Id$
*/
#ifndef __rtems_stdint_h
#define __rtems_stdint_h
-#ifdef __cplusplus
-extern "C" {
-#endif
-
#include <rtems/score/cpuopts.h>
#if RTEMS_USES_STDINT_H
#include <stdint.h>
-#elif RTEMS_USES_INTTYPES_H
-#include <inttypes.h>
-
#else
-/*
- * Wild guesses on systems not providing stdint.h nor inttypes.h
- * Known to work on Cywgin-1.3
- */
-
-#include <sys/types.h>
-
-#if !defined(uint8_t) && defined(__uint8_t)
-typedef __uint8_t uint8_t;
-#endif
-
-#if !defined(uint16_t) && defined(__uint16_t)
-typedef __uint16_t uint16_t;
-#endif
-
-#if !defined(uint32_t) && defined(__uint32_t)
-typedef __uint32_t uint32_t;
-#endif
-
-#if !defined(uint64_t) && defined(__uint64_t)
-typedef __uint64_t uint64_t;
-#endif
-
-#endif
-
-#ifdef __cplusplus
-}
+#include <inttypes.h>
#endif
#endif