[OT] Visual C++ question

Wizard wizard at neonedge.com
Fri Feb 14 14:24:56 EST 2003


> > Also, the same might go for Borland also.
>
> I'm not sure which you mean, but in Visual C++ you can do two things:
>
> 1.> use the '/Tc' option to specify C source file, regardless of
> extension.
> 2.> use the '/Za' option to specify ANSI C - sort of - there is
> no guarantee
> of ANSI C compatibility, it just claims that non-ANSI constructs
> are flagged
> as errors. I suspect it should work most of the time, though.
>
> It seems to me there was an 'ANSI_C' or 'STANDARD_C' compiler directive at
> one point, but I'm not positive of that. That may have been C++Builder,
> however.

I found it one of my source files:
#define __STDC__


Grant M.




More information about the Discuss mailing list