Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!bloom-beacon!CS.WISC.EDU!hagens From: hagens@CS.WISC.EDU Newsgroups: comp.windows.x Subject: Re: Problem compiling X11R2 on Multiflow under BSD4.3 Message-ID: <8809021439.AA02654@janeb.cs.wisc.edu> Date: 2 Sep 88 14:39:21 GMT References: <210@torch.UUCP> Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 21 > In article <392@gt-eedsp.UUCP> jensen@gt-eedsp.UUCP (P. Allen Jensen) writes: > >In article <8808152028.AA18193@EXPO.LCS.MIT.EDU>, jim@EXPO.LCS.MIT.EDU (Jim Fulton) writes: > >> > >> The R2 XtOffset macro causes compilers that are fairly picky about pointer > >> arithmetic to complain. The following version will be used in R3: > >> > >> #define XtOffset(type,field) \ > >> ((unsigned int) (((caddr_t) (&(((type)NULL)->field))) - \ > >> ((caddr_t) NULL))) This does not work for an IBM PC RT with the hc compiler. Does anyone know of a fix to the compiler or a work around? (Yes, I know about the _offsetof macro -- the problem is that it does not handle a field within a field: _offsetof(struct foo, a.b) will not be accepted. rob hagens uw madison computer science