2020-11-18 09:41:58 +00:00
|
|
|
/*
|
|
|
|
* <stddef.h> - standard type definitions
|
|
|
|
*
|
|
|
|
* This header is a part of the FENIX C Library and is free software.
|
|
|
|
* You can redistribute and/or modify it subject to the terms of the
|
|
|
|
* Clumsy Wolf Public License v4. For more details, see the file COPYING.
|
|
|
|
*
|
|
|
|
* The FENIX C Library is distributed WITH NO WARRANTY WHATSOEVER. See
|
|
|
|
* The CWPL for more details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _STDDEF_H
|
|
|
|
#define _STDDEF_H
|
|
|
|
|
|
|
|
#undef NULL
|
|
|
|
#define NULL (void *) 0
|
|
|
|
|
2020-12-01 23:31:04 +00:00
|
|
|
#include <types/ptrdiff_t.h>
|
|
|
|
#include <types/size_t.h>
|
|
|
|
#include <types/wchar_t.h>
|
2020-11-18 09:41:58 +00:00
|
|
|
|
2022-10-09 16:47:13 +00:00
|
|
|
/*
|
|
|
|
I do believe this is straight ripped from musl.
|
|
|
|
-Kat
|
|
|
|
*/
|
2020-12-13 11:17:50 +00:00
|
|
|
#define offsetof(type, member) (size_t)(&((type *)0->member))
|
|
|
|
|
2020-11-18 09:41:58 +00:00
|
|
|
#endif
|