Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Predefined Preprocessor Identifiers
Collapse the table of content
Expand the table of content

Predefined Preprocessor Identifiers (Windows CE 5.0)

Windows CE 5.0
Send Feedback

Both the ANSI-specific and Microsoft-specific predefined identifiers are described in the following lists.

If a predefined identifier has two forms, one with and one without an underscore, the command-line driver defines both if you specify the /Ze - Enable Language Extensions option. It defines only the leading underscore form if you specify the /Za - Disable Language Extensions option to compile for ANSI compatibility.

The following table shows the predefined identifiers supported by the compiler.

_CHAR_UNSIGNEDDefault char type is unsigned. Defined when /J - Change Default char Type is specified. Microsoft specific.
__cplusplusIdentifies a C++ program.
__DATE__The compilation date of the current source file. The date is a string literal of the form "Mmm dd yyyy". ANSI-specific.
__FILE__The name of the current source file __FILE__ expands to a string surrounded by double quotation marks.
__LINE__The line number in the current source file. The line number is a decimal integer constant. It can be altered with a #line directive. ANSI-specific.
_MSC_VERDefines the compiler version in the form: "ddd". Defined as 1201 for Microsoft C/C++.
_MSDOSIdentifies target operating system as MS-DOS. Microsoft-specific.
_M_ARMDefined as 4 for ARM.
_M_ARMTDefined as 4 for Thumb.
__STDC__Indicates full conformance with the ANSI C standard. Defined as the integer constant 1 only if the /Za command-line option is given; otherwise is undefined. ANSI-specific.
__TIME__The most recent compilation time of the current source file. The time is a string literal of the form "hh:mm:ss". ANSI-specific.
__TIMESTAMP__The date and time of the last modification of the source file, expressed as a string literal in the form: "Ddd Mmm Date hh:mm:ss yyyy" where Ddd is the abbreviated day of the week such as Wed and Date is an integer from 1 to 31. Microsoft-specific.

See Also

/J - Change Default char Type | /Za - Disable Language Extensions | /Ze - Enable Language Extensions

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.

© 2015 Microsoft