Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!cbosgd!ihnp4!twitch!grt From: grt@twitch.UUCP ( G.R.Tomasevich) Newsgroups: net.lang.c Subject: #if foo vs #if defined(foo) Message-ID: <379@twitch.UUCP> Date: Wed, 25-Jun-86 08:22:56 EDT Article-I.D.: twitch.379 Posted: Wed Jun 25 08:22:56 1986 Date-Received: Fri, 27-Jun-86 07:03:55 EDT References: <1586@brl-smoke.ARPA> Organization: AT&T Bell Labs, Holmdel Lines: 16 Keywords: Sys 5.2 Our compiler does not need a defined(), or at least I did not try whether it is even accepted. The following example works fine: #if squat||foo int yes; #else int no; #endif main() {} if the 'cc' command includes either '-Dsquat' or '-Dfoo', then 'yes' is selected, else 'no' is selected. E.g.: 'cc -Dfoo -E c.c' System: VAX-11/785 running UNIX 5.2 -- George Tomasevich, ihnp4!twitch!grt AT&T Bell Laboratories, Holmdel, NJ