Path: utzoo!attcan!uunet!samsung!noose.ecn.purdue.edu!mentor.cc.purdue.edu!mace.cc.purdue.edu!abe From: abe@mace.cc.purdue.edu (Vic Abell) Newsgroups: comp.unix.aix Subject: Re: #defines for AIX versions & h/w architectures Message-ID: <5727@mace.cc.purdue.edu> Date: 9 Oct 90 19:27:54 GMT References: <1204@ucl-cs.UUCP> Reply-To: abe@mace.cc.purdue.edu (Vic Abell) Organization: Purdue University Lines: 17 In article <1204@ucl-cs.UUCP> J.Crowcroft@ucl-cs.UUCP writes: >From: Jon Crowcroft > >what predefineds (e.g. is cpp called with any by cc) The porting guide, "Porting 4.3 BSD Programs to AIX Version 3.1" says: "In all cases, the AIXv3.1 C compiler defines the following two tokens: _AIX, _IBMR2." (You can find the porting guide in /usr/lpp/bos/bsdport.) I don't believe that these predefines are established in the classical cpp fashion. Instead they are created by that part of XL C that handles the stanzas of /etc/xlc.cfg. There are several other reasons for doing it this way: 1) more flexible; 2) there are two C preprocessors; and 3) no source code (yet) for cpp.