Hi Joerg, On Wed, Dec 4, 2013 at 12:25 PM, Joerg Sonnenberger <[email protected]> wrote: > On Wed, Dec 04, 2013 at 12:04:23PM -0200, Lourival Vieira Neto wrote: >> Hi Mindaugas, >> >> >> Here is a patch that puts ptrdiff_t in the kernel. It also creates a >> >> sys/stddef.h header. >> > >> > Why sys/stddef.h? Just keep them in sys/types.h please. >> >> To avoid redefining ptrdiff_t on stddef.h. I think it would be more >> coherent, since ptrdiff_t is a stddef.h definition and stddef.h >> shouldn't include sys/types.h. > > Weak reason. stddef.h must not include sys/types.h, but it doesn't mean > they can't both define it.
I didn't state that it can't be defined by both. I just said it would be more coherent to define it in just one place. Why it is a bad idea? Regards, -- Lourival Vieira Neto
