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.
This commit is contained in:
parent
b8e9a7c099
commit
c58cf6af0f
@ -1,3 +1,8 @@
|
|||||||
|
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>
|
2008-11-19 Ralf Corsepius <ralf.corsepius@rtems.org>
|
||||||
|
|
||||||
* libc/include/pthread.h: Remove prototypes for
|
* libc/include/pthread.h: Remove prototypes for
|
||||||
|
@ -36,26 +36,15 @@
|
|||||||
#ifndef _RUNETYPE_H_
|
#ifndef _RUNETYPE_H_
|
||||||
#define _RUNETYPE_H_
|
#define _RUNETYPE_H_
|
||||||
|
|
||||||
|
#include <stddef.h>
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
#include <machine/ansi.h>
|
#include <machine/ansi.h>
|
||||||
|
|
||||||
#ifdef _BSD_RUNE_T_
|
#ifdef _BSD_RUNE_T_
|
||||||
typedef _BSD_RUNE_T_ rune_t;
|
typedef _BSD_RUNE_T_ rune_t;
|
||||||
#undef _BSD_RUNE_T_
|
#undef _BSD_RUNE_T_
|
||||||
#endif
|
#else
|
||||||
|
|
||||||
typedef int rune_t;
|
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
|
#endif
|
||||||
|
|
||||||
#define _CACHED_RUNES (1 <<8 ) /* Must be a power of 2 */
|
#define _CACHED_RUNES (1 <<8 ) /* Must be a power of 2 */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user