stddef.h 364 Bytes
Newer Older
1
2
3
4
5
/*
 * Copyright (c) 2012-2017 Roberto E. Vargas Caballero
 *
 * SPDX-License-Identifier: BSD-3-Clause
 */
6
7
8
9
/*
 * Portions copyright (c) 2018, ARM Limited and Contributors.
 * All rights reserved.
 */
10
11
12
13

#ifndef _STDDEF_H
#define _STDDEF_H

14
#include <stddef_.h>
15
16
17
18
19
20
21
22

#ifndef NULL
#define NULL ((void *) 0)
#endif

#define offsetof(st, m) ((size_t)&(((st *)0)->m))

#endif