Newsgroups: news.software.b Path: utzoo!henry From: henry@utzoo.uucp (Henry Spencer) Subject: Re: compiler error? Message-ID: <1989Jun30.204822.2821@utzoo.uucp> Organization: U of Toronto Zoology References: <1989Jun29.010600.6802@intacc.uucp> Date: Fri, 30 Jun 89 20:48:22 GMT In article <1989Jun29.010600.6802@intacc.uucp> mann@intacc.UUCP (Jeff Mann) writes: > "hdrdefs.c", line 49: compiler error: > expression causes compiler loop: try simplifying > >...and offsetof is defined: > >#define offsetof(type, mem) ((char *)&((type *)NULL)->mem - (char *)NULL) > >- Any advice? Well, you might try simplifying offsetof to #define offsetof(type, mem) ((int)&((type *)NULL)->mem) but it's not guaranteed. A complaint to Microport about their defective compiler is probably also a good idea. -- NASA is to spaceflight as the | Henry Spencer at U of Toronto Zoology US government is to freedom. | uunet!attcan!utzoo!henry henry@zoo.toronto.edu