Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uflorida!ziggy!screamer!tscs!tct!chip From: chip@tct.uucp (Chip Salzenberg) Newsgroups: comp.lang.c Subject: Re: How portable are bitfields? Keywords: bitfields, #define Message-ID: <26ED0A30.694@tct.uucp> Date: 11 Sep 90 16:00:48 GMT References: <508@mtndew.Tustin.CA.US> <6227@uwm.edu> Distribution: usa Organization: Teltronics/TCT, Sarasota, FL Lines: 10 According to kam2@csd4.csd.uwm.edu (Keith A Mcmillan): >Alternatively, you can define the structure of the fields inside of >a #ifdef for the machine type. This strategy is a big-time loser when you have more than one compiler on your system. For example, SCO Unix has AT&T and Microsoft compilers, and I've installed GCC. Do they have the same bitfield algorithm? Beats me -- but I wouldn't count on it. -- Chip Salzenberg at Teltronics/TCT ,