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

Antonio Nino Diaz's avatar
Antonio Nino Diaz committed
11
12
#ifndef STDDEF_H
#define STDDEF_H
13

14
#include <stddef_.h>
15

16
17
18
19
20
#ifndef _PTRDIFF_T
typedef long ptrdiff_t;
#define _PTRDIFF_T
#endif

21
22
23
24
#ifndef NULL
#define NULL ((void *) 0)
#endif

Antonio Nino Diaz's avatar
Antonio Nino Diaz committed
25
#define offsetof(st, m) __builtin_offsetof(st, m)
26

Antonio Nino Diaz's avatar
Antonio Nino Diaz committed
27
#endif /* STDDEF_H */