2018-08-17 10:45:47 +01:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2012-2017 Roberto E. Vargas Caballero
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
*/
|
2018-08-15 19:51:09 +01:00
|
|
|
/*
|
|
|
|
* Portions copyright (c) 2018, ARM Limited and Contributors.
|
|
|
|
* All rights reserved.
|
|
|
|
*/
|
2018-08-17 10:45:47 +01:00
|
|
|
|
|
|
|
#ifndef _STDDEF_H
|
|
|
|
#define _STDDEF_H
|
|
|
|
|
2018-08-15 19:51:09 +01:00
|
|
|
#include <stddef_.h>
|
2018-08-17 10:45:47 +01:00
|
|
|
|
|
|
|
#ifndef NULL
|
|
|
|
#define NULL ((void *) 0)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define offsetof(st, m) ((size_t)&(((st *)0)->m))
|
|
|
|
|
|
|
|
#endif
|