arm-trusted-firmware/include/lib/libc/stddef.h

23 lines
364 B
C
Raw Normal View History

/*
* Copyright (c) 2012-2017 Roberto E. Vargas Caballero
*
* SPDX-License-Identifier: BSD-3-Clause
*/
/*
* Portions copyright (c) 2018, ARM Limited and Contributors.
* All rights reserved.
*/
#ifndef _STDDEF_H
#define _STDDEF_H
#include <stddef_.h>
#ifndef NULL
#define NULL ((void *) 0)
#endif
#define offsetof(st, m) ((size_t)&(((st *)0)->m))
#endif