blob: aaad673aad53ec750baef3ef2afe914f8e5bf0f5 [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/*
Govindraj Rajaeee28e72023-08-01 15:52:40 -05007 * 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 */