Re: (C++) Where does offsetof come from?
Hello,
On Sun, Jan 09, 2005 at 04:55:58PM -0800, exits funnel wrote:
> I'm trying to figure out where the offsetof macro is
> defined?
<stddef.h>, so <cstddef> for C++
> The only one I can find is
> in /usr/include/linux/stddef.h but (A) according to
> the output of g++ -v, this directory isn't in my
> include path
You have apparently not looked in /usr/lib/gcc/...
> If anyone could shed some
> light upon where sizeof if defined I'd really
> appreciate it.
sizeof is different from offsetof; sizeof is a built-in operator.
Mirek
_______________________________________________
Redhat-devel-list mailing list
Redhat-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/redhat-devel-list
[Home]
[Kernel Newbies]
[Red Hat General]
[Fedora]
[Red Hat Install]
[Kernel List]
[Yosemite News]