diff options
| author | Mike Barcroft <mike@FreeBSD.org> | 2002-08-21 16:20:02 +0000 |
|---|---|---|
| committer | Mike Barcroft <mike@FreeBSD.org> | 2002-08-21 16:20:02 +0000 |
| commit | abbd8902334e8c6409384593b4a2c81f939b47b4 (patch) | |
| tree | 7e9e16e835d265de592c113ee6c5d85f9be039cb /include/stdlib.h | |
| parent | 9884a53c1a3e4753e347c793df6af4bd0298eab2 (diff) | |
Notes
Diffstat (limited to 'include/stdlib.h')
| -rw-r--r-- | include/stdlib.h | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/include/stdlib.h b/include/stdlib.h index c3c3cc07bd38..c3d9d136aa25 100644 --- a/include/stdlib.h +++ b/include/stdlib.h @@ -38,25 +38,24 @@ #define _STDLIB_H_ #include <sys/cdefs.h> - -#include <machine/ansi.h> +#include <sys/_types.h> #if !defined(_ANSI_SOURCE) && !defined(_POSIX_SOURCE) -#ifdef _BSD_RUNE_T_ -typedef _BSD_RUNE_T_ rune_t; -#undef _BSD_RUNE_T_ +#ifndef _RUNE_T_DECLARED +typedef __rune_t rune_t; +#define _RUNE_T_DECLARED #endif #endif -#ifdef _BSD_SIZE_T_ -typedef _BSD_SIZE_T_ size_t; -#undef _BSD_SIZE_T_ +#ifndef _SIZE_T_DECLARED +typedef __size_t size_t; +#define _SIZE_T_DECLARED #endif #ifndef __cplusplus -#ifdef _BSD_WCHAR_T_ -typedef _BSD_WCHAR_T_ wchar_t; -#undef _BSD_WCHAR_T_ +#ifndef _WCHAR_T_DECLARED +typedef __wchar_t wchar_t; +#define _WCHAR_T_DECLARED #endif #endif |
