2003-08-02 11:47:24 +04:00
|
|
|
#ifndef _STDDEF_H_
|
2002-10-24 00:35:37 +04:00
|
|
|
#define _STDDEF_H_
|
2003-08-02 11:47:24 +04:00
|
|
|
/*
|
|
|
|
** Distributed under the terms of the OpenBeOS License.
|
|
|
|
*/
|
|
|
|
#include <null.h>
|
2002-10-24 00:35:37 +04:00
|
|
|
|
2007-04-12 22:36:37 +04:00
|
|
|
#if defined(__GNUC__) && __GNUC__ > 3
|
|
|
|
#define offsetof(type,member) __builtin_offsetof(type, member)
|
|
|
|
#else
|
2003-08-02 11:47:24 +04:00
|
|
|
#define offsetof(type,member) ((size_t)&((type*)0)->member)
|
2007-04-12 22:36:37 +04:00
|
|
|
#endif
|
2002-10-24 00:35:37 +04:00
|
|
|
|
2003-08-02 11:47:24 +04:00
|
|
|
typedef long ptrdiff_t;
|
2002-10-24 00:35:37 +04:00
|
|
|
|
2003-08-02 11:47:24 +04:00
|
|
|
#include <wchar_t.h>
|
|
|
|
#include <size_t.h>
|
2002-10-24 00:35:37 +04:00
|
|
|
|
2003-08-02 11:47:24 +04:00
|
|
|
#endif /* _STDDEF_H_ */
|