Antonio Nino Diaz | cf0f805 | 2018-08-17 10:45:47 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2012-2017 Roberto E. Vargas Caballero |
| 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
Antonio Nino Diaz | 6ef1612 | 2018-08-15 19:51:09 +0100 | [diff] [blame] | 6 | /* |
Bence Szépkúti | fddf518 | 2019-10-25 17:48:20 +0200 | [diff] [blame] | 7 | * Portions copyright (c) 2018-2019, ARM Limited and Contributors. |
Antonio Nino Diaz | 6ef1612 | 2018-08-15 19:51:09 +0100 | [diff] [blame] | 8 | * All rights reserved. |
| 9 | */ |
Antonio Nino Diaz | cf0f805 | 2018-08-17 10:45:47 +0100 | [diff] [blame] | 10 | |
Antonio Nino Diaz | 17605e7 | 2018-08-14 13:39:29 +0100 | [diff] [blame] | 11 | #ifndef STDDEF_H |
| 12 | #define STDDEF_H |
Antonio Nino Diaz | cf0f805 | 2018-08-17 10:45:47 +0100 | [diff] [blame] | 13 | |
Antonio Nino Diaz | 6ef1612 | 2018-08-15 19:51:09 +0100 | [diff] [blame] | 14 | #include <stddef_.h> |
Antonio Nino Diaz | cf0f805 | 2018-08-17 10:45:47 +0100 | [diff] [blame] | 15 | |
Bence Szépkúti | fddf518 | 2019-10-25 17:48:20 +0200 | [diff] [blame] | 16 | #ifndef _PTRDIFF_T |
| 17 | typedef long ptrdiff_t; |
| 18 | #define _PTRDIFF_T |
| 19 | #endif |
| 20 | |
Antonio Nino Diaz | cf0f805 | 2018-08-17 10:45:47 +0100 | [diff] [blame] | 21 | #ifndef NULL |
| 22 | #define NULL ((void *) 0) |
| 23 | #endif |
| 24 | |
Antonio Nino Diaz | 17605e7 | 2018-08-14 13:39:29 +0100 | [diff] [blame] | 25 | #define offsetof(st, m) __builtin_offsetof(st, m) |
Antonio Nino Diaz | cf0f805 | 2018-08-17 10:45:47 +0100 | [diff] [blame] | 26 | |
Antonio Nino Diaz | 17605e7 | 2018-08-14 13:39:29 +0100 | [diff] [blame] | 27 | #endif /* STDDEF_H */ |