65816-llvm-mos/runtime/include/stddef.h
Scott Duensing e65fedc8e1 Checkpoint
2026-05-13 15:48:34 -05:00

20 lines
441 B
C

// Minimal stddef.h for the W65816 runtime. Standalone (does not
// include the host clang's stddef.h).
#ifndef _STDDEF_H
#define _STDDEF_H
typedef unsigned long size_t;
typedef int ptrdiff_t;
#ifndef _WCHAR_T_DEFINED
# define _WCHAR_T_DEFINED
typedef int wchar_t; // matches clang builtin signature
#endif
#ifndef NULL
# define NULL ((void *)0)
#endif
#define offsetof(t, m) __builtin_offsetof(t, m)
#endif