This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C++ patch] use __PTRDIFF_TYPE__ in newabi header
>>>>> Nathan Sidwell <nathan@codesourcery.com> writes:
> Jason Merrill wrote:
>>
>> Why are you expanding offsetof inline?
> Because I'm not including <stddef.h> or <cstddef> at all. Would
> you prefer that I include stddef.h in the source file? I'll regress
> that part of the patch, if you let me know.
Please do. There's no reason we can't include it in the .cc files,
especially since we provide stddef.h.
It would probably make sense for the compiler to provide cstddef, as well,
actually.
Jason