blob: 58a519e523c937edf6da717921b4d39d89fda5d3 [file] [log] [blame]
Antonio Nino Diazcf0f8052018-08-17 10:45:47 +01001/*
2 * Copyright (c) 2012-2017 Roberto E. Vargas Caballero
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
Antonio Nino Diaz6ef16122018-08-15 19:51:09 +01006/*
Bence Szépkútifddf5182019-10-25 17:48:20 +02007 * Portions copyright (c) 2018-2019, ARM Limited and Contributors.
Antonio Nino Diaz6ef16122018-08-15 19:51:09 +01008 * All rights reserved.
9 */
Antonio Nino Diazcf0f8052018-08-17 10:45:47 +010010
Antonio Nino Diaz17605e72018-08-14 13:39:29 +010011#ifndef STDDEF_H
12#define STDDEF_H
Antonio Nino Diazcf0f8052018-08-17 10:45:47 +010013
Antonio Nino Diaz6ef16122018-08-15 19:51:09 +010014#include <stddef_.h>
Antonio Nino Diazcf0f8052018-08-17 10:45:47 +010015
Bence Szépkútifddf5182019-10-25 17:48:20 +020016#ifndef _PTRDIFF_T
17typedef long ptrdiff_t;
18#define _PTRDIFF_T
19#endif
20
Antonio Nino Diazcf0f8052018-08-17 10:45:47 +010021#ifndef NULL
22#define NULL ((void *) 0)
23#endif
24
Antonio Nino Diaz17605e72018-08-14 13:39:29 +010025#define offsetof(st, m) __builtin_offsetof(st, m)
Antonio Nino Diazcf0f8052018-08-17 10:45:47 +010026
Antonio Nino Diaz17605e72018-08-14 13:39:29 +010027#endif /* STDDEF_H */