uniLoader/lib/unic/stddef.h
Ivaylo Ivanov 3ab64bed39 lib: Introduce unic
unic is a small library of C functions that is currently written
in plain C. It's purpose isn't to be fast, but "universal" - as
in include as little architecture-specific code as possible.

The old neatlibc still resides, but isn't being built. There is
still more to do, including implementation of memory management,
so keep it there for now.

Signed-off-by: Ivaylo Ivanov <ivo.ivanov.ivanov1@gmail.com>
2024-09-23 20:17:44 +03:00

15 lines
309 B
C

/* SPDX-License-Identifier: MIT */
/*
* Copyright (c) 2024, Ivaylo Ivanov <ivo.ivanov.ivanov1@gmail.com>
*/
#ifndef STDDEF_H_ /* Include guard */
#define STDDEF_H_
#define NULL ((void *) 0)
#define offsetof(type, field) ((int) (&((type *) 0)->field))
typedef unsigned long size_t;
#endif // STDDEF_H_