Xref: utzoo news.software.b:3576 comp.unix.microport:3843 Newsgroups: news.software.b,comp.unix.microport Path: utzoo!henry From: henry@utzoo.uucp (Henry Spencer) Subject: Re: Cnews on System V/AT: "expression causes compiler loop" Message-ID: <1989Nov20.181839.1546@utzoo.uucp> Organization: U of Toronto Zoology References: <3056@splut.conmicro.com> Date: Mon, 20 Nov 89 18:18:39 GMT In article <3056@splut.conmicro.com> jay@splut.conmicro.com (Jay "you ignorant splut!" Maynard) writes: >"hdrdefs.c", line 49: compiler error: expression causes compiler loop: >try simplifying The offsetof() macro has a tendency to stress-test compilers. Try: #define offsetof(type, mem) ((int)&((type *)NULL)->mem) as an alternative. -- A bit of tolerance is worth a | Henry Spencer at U of Toronto Zoology megabyte of flaming. | uunet!attcan!utzoo!henry henry@zoo.toronto.edu