chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
fix typo in firmware_helper
[elogind.git]
/
klibc
/
include
/
stddef.h
1
/*
2
* stddef.h
3
*/
4
5
#ifndef _STDDEF_H
6
#define _STDDEF_H
7
8
#ifndef __KLIBC__
9
# error "__KLIBC__ not defined, compiler invocation error!"
10
#endif
11
12
#include <bitsize/stddef.h>
13
14
#undef NULL
15
#ifdef __cplusplus
16
# define NULL 0
17
#else
18
# define NULL ((void *)0)
19
#endif
20
21
#undef offsetof
22
#define offsetof(t,m) ((size_t)&((t *)0)->m)
23
24
#endif /* _STDDEF_H */