summaryrefslogtreecommitdiff
path: root/05/musl-0.6.0/include/stddef.h
blob: dbf5a4ae1fe987b9059fe2510171634c4db51bb6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef _STDDEF_H
#define _STDDEF_H

#undef NULL
#ifdef __cplusplus
#define NULL 0
#else
#define NULL ((void*)0)
#endif

#define __NEED_ptrdiff_t
#define __NEED_size_t
#define __NEED_wchar_t

#include <bits/alltypes.h>

#define offsetof(type, member) ((size_t)( (char *)&(((type *)0)->member) - (char *)0 ))

#endif