summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2008-11-19 17:13:13 +0000
committerJeff Johnston <jjohnstn@redhat.com>2008-11-19 17:13:13 +0000
commitc58cf6af0fd703f0bfa96a143c532bf0dcb67cf4 (patch)
tree7459512e908928bf036e75092b8d5c342b9111fe
parentb8e9a7c099a68ea89d156d1f9ee8cbe7f3dab44f (diff)
downloadcygnal-c58cf6af0fd703f0bfa96a143c532bf0dcb67cf4.tar.gz
cygnal-c58cf6af0fd703f0bfa96a143c532bf0dcb67cf4.tar.bz2
cygnal-c58cf6af0fd703f0bfa96a143c532bf0dcb67cf4.zip
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.
-rw-r--r--newlib/ChangeLog5
-rw-r--r--newlib/libc/posix/runetype.h15
2 files changed, 7 insertions, 13 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index c5913e09e..1429e8e70 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -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.
diff --git a/newlib/libc/posix/runetype.h b/newlib/libc/posix/runetype.h
index 6957ab04b..4562521b9 100644
--- a/newlib/libc/posix/runetype.h
+++ b/newlib/libc/posix/runetype.h
@@ -36,26 +36,15 @@
#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 */