Files
mm/include/libc/stddef.h
T
Tharo 01a1b113b4 libultra/libc cleanup (#1757)
* libultra/libc cleanup

* Format

* Correct prototype for strchr

* Different prototypes for bzero, bcmp, bcopy under __GNUC__ to match builtin prototypes

* Correct alloca prototype
2024-12-13 18:28:22 -08:00

26 lines
491 B
C

#ifndef LIBC_STDDEF_H
#define LIBC_STDDEF_H
#ifndef NULL
#define NULL ((void*)0)
#endif
#if !defined(_SIZE_T)
#define _SIZE_T
#if defined(_MIPS_SZLONG) && (_MIPS_SZLONG == 64)
typedef unsigned long size_t;
#else
typedef unsigned int size_t;
#endif
#endif
typedef signed long ptrdiff_t;
#ifdef __GNUC__
#define offsetof(structure, member) __builtin_offsetof (structure, member)
#else
#define offsetof(structure, member) ((size_t)&(((structure*)0)->member))
#endif
#endif /* STDDEF_H */