version 1.8, 2005/05/11 18:44:12 |
version 1.9, 2006/01/06 18:53:04 |
|
|
#ifndef _STDDEF_H_ |
#ifndef _STDDEF_H_ |
#define _STDDEF_H_ |
#define _STDDEF_H_ |
|
|
#include <machine/ansi.h> |
#include <sys/cdefs.h> |
|
#include <sys/_types.h> |
|
|
typedef _BSD_PTRDIFF_T_ ptrdiff_t; |
#ifndef _PTRDIFF_T_DEFINED_ |
|
#define _PTRDIFF_T_DEFINED_ |
|
typedef __ptrdiff_t ptrdiff_t; |
|
#endif |
|
|
#ifdef _BSD_SIZE_T_ |
#ifndef _SIZE_T_DEFINED_ |
typedef _BSD_SIZE_T_ size_t; |
#define _SIZE_T_DEFINED_ |
#undef _BSD_SIZE_T_ |
typedef __size_t size_t; |
#endif |
#endif |
|
|
#ifdef _BSD_WCHAR_T_ |
|
/* in C++, wchar_t is a built-in type */ |
/* in C++, wchar_t is a built-in type */ |
#ifndef __cplusplus |
#if !defined(_WCHAR_T_DEFINED_) && !defined(__cplusplus) |
typedef _BSD_WCHAR_T_ wchar_t; |
#define _WCHAR_T_DEFINED_ |
#undef _BSD_WCHAR_T_ |
typedef __wchar_t wchar_t; |
#endif |
#endif |
#endif |
|
|
|
#ifdef _BSD_WINT_T_ |
#ifndef _WINT_T_DEFINED_ |
typedef _BSD_WINT_T_ wint_t; |
#define _WINT_T_DEFINED_ |
#undef _BSD_WINT_T_ |
typedef __wint_t wint_t; |
#endif |
#endif |
|
|
#ifdef _BSD_MBSTATE_T_ |
#ifndef _MBSTATE_T_DEFINED_ |
typedef _BSD_MBSTATE_T_ mbstate_t; |
#define _MBSTATE_T_DEFINED_ |
#undef _BSD_MBSTATE_T_ |
typedef __mbstate_t mbstate_t; |
#endif |
#endif |
|
|
#ifndef NULL |
#ifndef NULL |