Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!romp!auschs!cello!d75!awdprime!stingray!marc From: marc@stingray..austin.ibm.com (Marc J. Stephenson/140000;1C-22) Newsgroups: comp.unix.aix Subject: Re: AIX/RS6000 cpp defined names Message-ID: <1943@awdprime.UUCP> Date: 29 Mar 90 14:56:49 GMT References: <1041@applix.com> Sender: news@awdprime.UUCP Reply-To: marc@awdprime.austin.ibm.com.UUCP (Marc J. Stephenson/140000) Organization: IBM AWD, Austin, TX Lines: 21 In article <1041@applix.com> jim@applix.com (Jim Morton) writes: >>>I'd like to know the cpp names for the new IBM RISC/6000 machines. Example: >>>#if defined(sun) || defined(alliant) || defined(???) >>>#endif >Is there a /etc/cc.cfg file in AIX 3 in the RS/6000? If so, it should >have the default -D options listed. Can someone who has one of these >animals check this and let us know? (AIX/RT has -Daiws and -DAIX). The /etc/xlc.cfg file has -D_IBMR2 defined along with -D_AIX. If one compiles with the ANSI version (xlc) rather than the extended version (cc), then -D_ANSI_C_SOURCE gets added as well. I believe that the preceding '_' characters are courtesy of some standards committee. Anyway, _IBMR2 is your answer; I suppose that it's subject to change before the code ships, but I doubt it because we've got it all over our source code (and in a few system include files as well). Marc Stephenson (marc@stingray.austin.ibm.com) DISCLAIMER: The content of this posting is independent of official IBM position. External: uunet!cs.utexas.edu!ibmaus!auschs!stingray.austin.ibm.com!marc Internal: marc@stingray.austin.ibm.com VNET: MARC at AUSVM6 T/L: 793-3796