OSDN Git Service

2008-11-19 Ralf Corsepius <ralf.corsepius@rtems.org>
authorjjohnstn <jjohnstn>
Wed, 19 Nov 2008 17:13:12 +0000 (17:13 +0000)
committerjjohnstn <jjohnstn>
Wed, 19 Nov 2008 17:13:12 +0000 (17:13 +0000)
        * libc/posix/runetype.h: Add include of stddef.h and remove
        defining standard types: size_t and wchar_t.

newlib/ChangeLog
newlib/libc/posix/runetype.h

index c5913e0..1429e8e 100644 (file)
@@ -1,5 +1,10 @@
 2008-11-19  Ralf Corsepius  <ralf.corsepius@rtems.org>
 
+       * libc/posix/runetype.h: Add include of stddef.h and remove
+       defining standard types: size_t and wchar_t.
+
+2008-11-19  Ralf Corsepius  <ralf.corsepius@rtems.org>
+
        * libc/include/pthread.h: Remove prototypes for
        pthread_attr_getcputime and pthread_attr_setcputime which
        were proposed but never approved by the POSIX standard.
index 6957ab0..4562521 100644 (file)
 #ifndef        _RUNETYPE_H_
 #define        _RUNETYPE_H_
 
+#include <stddef.h>
 #include <sys/cdefs.h>
 #include <machine/ansi.h>
 
 #ifdef _BSD_RUNE_T_
 typedef        _BSD_RUNE_T_    rune_t;
 #undef _BSD_RUNE_T_
-#endif
-
+#else
 typedef int rune_t;
-
-#ifdef _BSD_SIZE_T_
-typedef        _BSD_SIZE_T_    size_t;
-#undef _BSD_SIZE_T_
-#endif
-
-typedef unsigned int size_t;
-
-#ifdef _BSD_WCHAR_T_
-typedef        _BSD_WCHAR_T_   wchar_t;
-#undef _BSD_WCHAR_T_
 #endif
 
 #define        _CACHED_RUNES   (1 <<8 )        /* Must be a power of 2 */