aboutsummaryrefslogtreecommitdiffstats
path: root/include/lib/libc/stddef.h
blob: da884b328a7c2d7d392903102b682129a9393553 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*
 * Copyright (c) 2012-2017 Roberto E. Vargas Caballero
 *
 * SPDX-License-Identifier: BSD-3-Clause
 */
/*
 * Portions copyright (c) 2018, ARM Limited and Contributors.
 * All rights reserved.
 */

#ifndef _STDDEF_H
#define _STDDEF_H

#include <stddef_.h>

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

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

#endif