Path: utzoo!attcan!uunet!zephyr.ens.tek.com!uw-beaver!mit-eddie!apollo!vasta From: vasta@apollo.HP.COM (John Vasta) Newsgroups: comp.sys.apollo Subject: Re: one cpp and one f77 question Keywords: cpp Message-ID: <48822d9c.20b6d@apollo.HP.COM> Date: 7 Feb 90 22:10:00 GMT References: <4877da3b.bb89@spam.engin.umich.edu> <4880b96f.20b6d@apollo.HP.COM> Sender: root@apollo.HP.COM Reply-To: vasta@apollo.HP.COM (John Vasta) Organization: Hewlett-Packard Company, Apollo Division; Chelmsford, MA Lines: 27 In article <4880b96f.20b6d@apollo.HP.COM> oj@apollo.hp.com writes: >In article <4877da3b.bb89@spam.engin.umich.edu> oliveria@caen.engin.umich.edu (ROQUE DONIZETE DE OLIVEIRA) writes: >> is there any define I can use with cpp that uniquely define the dn10k ? >> I know about ISP but it is not in cpp. > >If you invoke the preprocessor by saying > /bin/cc -E >instead of > /lib/cpp >then you can use these #ifdefs for prism and m68k respectively. >#ifdef _ISP__A88K >#ifdef _ISP__M68K > >(note the two consecutive underscores...) Small correction: both symbols are always defined, but expand to either 0 or 1 for the appropriate machine. Therefore, you would use #if _ISP__A88K /* compiling for a DN10000 */ #if _ISP__M68K /* compiling for a 68K box */ John Vasta Hewlett-Packard Apollo Systems Division vasta@apollo.hp.com M.S. CHA-01-LT (508) 256-6600 x6362 300 Apollo Drive, Chelmsford, MA 01824 UUCP: {decwrl!decvax, mit-eddie, attunix}!apollo!vasta