gcc defines the magic __WCHAR_TYPE__ macro, in order to convey information about whether or not the user selected -fshort-wchar.
the definition of it uses offsetof(), and the two concepts are related.