65816-llvm-mos/runtime/include/stddef.h
Scott Duensing d6a34075a5 Checkpoint
2026-05-01 20:24:30 -05:00

17 lines
381 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 int size_t;
typedef int ptrdiff_t;
typedef int wchar_t; // not really wide-char-supported
#ifndef NULL
# define NULL ((void *)0)
#endif
#define offsetof(t, m) __builtin_offsetof(t, m)
#endif