aboutsummaryrefslogtreecommitdiff
path: root/include/stddef.h
blob: 9d522486573fd8237e76baddaa89c4d47c74d347 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef _STDDEF_H
#define _STDDEF_H

#define NULL 0L

#define __NEED_ptrdiff_t
#define __NEED_size_t
#define __NEED_wchar_t

#include <bits/alltypes.h>

#if __GNUC__ > 3
#define offsetof(type, member) __builtin_offsetof(type, member)
#else
#define offsetof(type, member) ((size_t)( (char *)&(((type *)0)->member) - (char *)0 ))
#endif

#endif