Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.1 6/24/83 (MC840302); site tjalk.UUCP
Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!think!harvard!seismo!mcvax!vu44!botter!tjalk!dick
From: dick@tjalk.UUCP (Dick Grune)
Newsgroups: net.unix-wizards
Subject: Re: Bad choice of preprocessor variable name
Message-ID: <491@tjalk.UUCP>
Date: Thu, 11-Jul-85 07:29:24 EDT
Article-I.D.: tjalk.491
Posted: Thu Jul 11 07:29:24 1985
Date-Received: Sat, 13-Jul-85 10:18:52 EDT
References: <11428@brl-tgr.ARPA>
Reply-To: dick@tjalk.UUCP (Dick Grune)
Organization: VU Informatica, Amsterdam
Lines: 18

In article <11428@brl-tgr.ARPA> phil@RICE.ARPA (William LeFebvre) writes:
>I really like the idea of predefined preprocessor names that identify
>the architecture/os of the host, such as:  sun, vax, vax11c, etc....

> ... these may coincide with variable names ... [summary by dick@tjalk.UUCP]

>     .....                                      Guess what?!?  "struct
>sockaddr_un sun;"  Now try compiling that on a Sun!  It don't work too
>well.

You can have your cake and eat it: the new Amsterdam Compiler Kit C compiler
would have sun defined and replace it by sun.

					Dick Grune
					Vrije Universiteit
					de Boelelaan 1081
					1081 HV  Amsterdam
					the Netherlands