C/C++ Compiler (cl.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Enabling and Disabling Language Extensions (/Za, /Ze)
                                             Up Contents Index Back
─────C/C++ Compiler─────────────────────────────────────────────────────────
 
     Syntax:  /Za
              /Ze
 
     Use these options to enable or disable language extensions:
 
     Option          Action
 
     ANSI C          Disables Microsoft language extensions. Use this
                     option when you are porting a program to other
                     environments. Use of the /Za option causes CL to
                     emit the __STDC__ preprocessor identifier. The
                     command-line equivalent is /Za.
 
     MS Extensions   Enables Microsoft language extensions. The
                     command-line equivalent is /Ze, the default.
 
     See: Language Extension Details
 
     NOTE:   If you use the /Za option, CL uses the /Op option to
             improve the consistency of floating-point tests for
             equality and inequality; this use of /Op is for strict ANSI
             conformance. A program compiled with /Op may be slower and
             larger than one compiled without /Op. Placing the /Op-
             option on the command line with the /Za option will
             disable /Op.
             See: Improve Float Consistency: Details
                                    -♦-