xref: /rk3399_ARM-atf/include/lib/libc/stddef.h (revision 7c0ff9c40ceeacf239ec9a3465be0477594cf898)
1 /*
2  * Copyright (c) 2012-2017 Roberto E. Vargas Caballero
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 /*
7  * Portions copyright (c) 2018, ARM Limited and Contributors.
8  * All rights reserved.
9  */
10 
11 #ifndef _STDDEF_H
12 #define _STDDEF_H
13 
14 #include <stddef_.h>
15 
16 #ifndef NULL
17 #define NULL ((void *) 0)
18 #endif
19 
20 #define offsetof(st, m) ((size_t)&(((st *)0)->m))
21 
22 #endif
23