// 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