blob: c9957bdb1c9a9c44f60cfeed3ba6b041756c581c [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/*
7 * Portions copyright (c) 2018, ARM Limited and Contributors.
8 * 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
16#ifndef NULL
17#define NULL ((void *) 0)
18#endif
19
Antonio Nino Diaz17605e72018-08-14 13:39:29 +010020#define offsetof(st, m) __builtin_offsetof(st, m)
Antonio Nino Diazcf0f8052018-08-17 10:45:47 +010021
Antonio Nino Diaz17605e72018-08-14 13:39:29 +010022#endif /* STDDEF_H */