Displaying 2 results from an estimated 2 matches for "_stddef_h".
Did you mean:
stddef_h
2024 Feb 28
0
[PATCH 1/1] stddef.h: add wchar_t type definition
..., 2 insertions(+)
diff --git a/com32/include/stddef.h b/com32/include/stddef.h
index f52d62f3..437b11f2 100644
--- a/com32/include/stddef.h
+++ b/com32/include/stddef.h
@@ -29,4 +29,6 @@
*/
#define container_of(p, c, m) ((c *)((char *)(p) - offsetof(c,m)))
+typedef short wchar_t;
+
#endif /* _STDDEF_H */
--
2.44.0
2004 Feb 12
1
Fwd: Re: Bugfix: offsetof in klibc
...-19,6 +19,6 @@
> > > > #endif
> > > >
> > > > #undef offsetof
> > > > -#define offsetof(t,m) ((size_t)&((t *)0->m))
> > > > +#define offsetof(t,m) ((size_t)&((t *)0)->m)
> > > >
> > > > #endif /* _STDDEF_H */
> > > >
> > > > otherwise the compiler complains and I suspect it will generated invalid
>
> > > > code anyway.
> > >
> > > Don't you mean to send this to the klibc mailing list?
> >
> > We are using offsetof() now, wit...