Ambroise Vincent | 4128f9f | 2019-02-11 13:34:41 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2012-2017 Roberto E. Vargas Caballero |
| 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | /* |
Bence Szépkúti | 5913030 | 2019-12-18 17:18:16 +0100 | [diff] [blame] | 7 | * Portions copyright (c) 2018-2019, ARM Limited and Contributors. |
Ambroise Vincent | 4128f9f | 2019-02-11 13:34:41 +0000 | [diff] [blame] | 8 | * All rights reserved. |
| 9 | */ |
| 10 | |
| 11 | #ifndef STDDEF_H |
| 12 | #define STDDEF_H |
| 13 | |
| 14 | #include <stddef_.h> |
| 15 | |
Bence Szépkúti | 5913030 | 2019-12-18 17:18:16 +0100 | [diff] [blame] | 16 | #ifndef _PTRDIFF_T |
| 17 | typedef long ptrdiff_t; |
| 18 | #define _PTRDIFF_T |
| 19 | #endif |
| 20 | |
Ambroise Vincent | 4128f9f | 2019-02-11 13:34:41 +0000 | [diff] [blame] | 21 | #ifndef NULL |
| 22 | #define NULL ((void *) 0) |
| 23 | #endif |
| 24 | |
| 25 | #define offsetof(st, m) __builtin_offsetof(st, m) |
| 26 | |
| 27 | #endif /* STDDEF_H */ |