/* Copyright (c) 2001-2004 by SoftIntegration, Inc. All Rights Reserved */
/************************************************************
* File name: stddef.h
: Note: standard definition header file
************************************************************/
#ifndef _STDDEF_H_
#define _STDDEF_H_

#ifndef _PTRDIFF_T
#define _PTRDIFF_T
typedef int     ptrdiff_t;
#endif

#ifndef _SIZE_T_DEFINED
#define _SIZE_T_DEFINED
typedef unsigned int    size_t;         /* (historical version) */
#endif  /* !_SIZE_T_DEFINED */

#ifndef _WCHAR_T_DEFINED
#define _WCHAR_T_DEFINED
#if defined(_WIN32_)
typedef unsigned short wchar_t;
#else
typedef int wchar_t;
#endif
#endif  /* !_WCHAR_T_DEFINED */


#define offsetof(s, m)  (size_t)(&(((s *)0)->m))

#endif /* _STDDEF_H_ */
