From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,ac7229720180cbcd,start X-Google-Attributes: gid1164f8,public From: Dan Pop Subject: Re: pcc directive ? Date: 1995/11/21 Message-ID: <9511212256.AA16674@dxmint.cern.ch>#1/1 X-Deja-AN: 119820112 x-nntp-posting-host: dxmint.cern.ch references: organization: CERN European Lab for Particle Physics newsgroups: comp.sys.dec I guess the subject was meant to be "cpp directive". frederic_bouquet@ascus.com (Frederic Bouquet) writes: >I have to compile a source code on a DecAlpha machine. In this source code >there are some machine dependant part (delimited with #ifdef RS6000 ... >#endif). >On a DecAlpha is there a predefine command so that I can enter "#ifdef >decalpha". Is decalpha exists ? if not what is the right name ? You forgot to mention the operating system. From your mention of RS6000 it can be assumed that you're interested in OSF/1. If this is the case, use: #if defined __alpha && defined __osf__ If you're sure your code will be never compiled under other Alpha OS, you can use the simpler: #ifdef __alpha In general, when you want to find out which symbols are predefined on a Unix cc, try the -v compiler option, like this: cc -v foo.c Dan -- Dan Pop CERN, CN Division Email: danpop@mail.cern.ch Mail: CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland