2012-05-25 16:30:17 -04:00
|
|
|
#ifndef __STDDEF_H
|
|
|
|
#define __STDDEF_H
|
|
|
|
|
2013-03-25 09:38:58 -04:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2013-03-23 19:17:42 -04:00
|
|
|
#ifdef __cplusplus
|
|
|
|
#define NULL 0
|
|
|
|
#else
|
2012-05-25 16:30:17 -04:00
|
|
|
#define NULL ((void *)0)
|
2013-03-23 19:17:42 -04:00
|
|
|
#endif
|
2012-05-25 16:30:17 -04:00
|
|
|
|
|
|
|
typedef unsigned long size_t;
|
|
|
|
typedef long ptrdiff_t;
|
|
|
|
|
|
|
|
#define offsetof(s,m) (size_t)&(((s *)0)->m)
|
|
|
|
|
2013-03-25 09:38:58 -04:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2012-05-25 16:30:17 -04:00
|
|
|
#endif /* __STDDEF_H */
|