Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!gem.mps.ohio-state.edu!apple!agate!saturn!sidney From: sidney@saturn.ucsc.edu (Sidney Markowitz ) Newsgroups: comp.lang.c Subject: Re: for Turbo C ? Message-ID: <9427@saturn.ucsc.edu> Date: 16 Oct 89 05:40:39 GMT References: <5940011@hpcupt1.HP.COM> <5940012@hpcupt1.HP.COM> <11295@smoke.BRL.MIL> Reply-To: sidney@saturn.ucsc.edu (Sidney Markowitz ) Organization: University of California, Santa Cruz Lines: 13 In article <11295@smoke.BRL.MIL> gwyn@brl.arpa (Doug Gwyn) writes: > [...] Here is a typical example of code >that works with either implementation: > #ifdef __STDC__ I would suggest one modification to this. TurboC only defines __STDC__ if you specify the -A (ANSI compatibility) flag when compiling. I would define my own flag STDVARARGS if __STDC__ or __TURBOC__ is defined and then use that, so you have the option of using conditionalized TurboC extensions if you want to. -- sidney markowitz