Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!dimacs.rutgers.edu!mips!spool.mu.edu!uunet!orca!javelin.es.com!jwilliam From: jwilliam@javelin.es.com (Jerry Williams) Newsgroups: comp.lang.c Subject: Finding out what is defined Summary: Help Keywords: #define vax sun i386 Message-ID: <1991Mar18.045748.6860@javelin.es.com> Date: 18 Mar 91 04:57:48 GMT Distribution: usa Organization: Evans & Sutherland Computer Corp., Salt Lake City, Utah Lines: 16 I would like to find out what is defined for a given compiler. For example on a VAX running VMS vax is defined so the following works. #ifdef vax printf("vax is defined !\n"); #endif And the same works for a sun or a 386 using i386. The question is, is there a way to find out what these are without looking through the include files for a given system or guessing at them? Is any of this documented somewhere or is it just something everyone decided to do to be nice? Jerry -- Jerry Williams @ Evans & Sutherland 560 Arapeen Drive, SLC, Utah 84108 jwilliam@javelin.sim.es.com or jwilliam%javelin@sim.es.com ...sim.es.com!javelin!jwilliam or {decwrl, utah-cs}!esunix!jwilliam