You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
477 B
24 lines
477 B
// Test to verify that _SBCS being defined causes CharacterSet to be set to 0
|
|
// (Single Byte Character Set)
|
|
|
|
int main()
|
|
{
|
|
#ifdef _UNICODE
|
|
bool UnicodeSet = true;
|
|
#else
|
|
bool UnicodeSet = false;
|
|
#endif
|
|
|
|
#ifdef _MBCS
|
|
bool MBCSSet = true;
|
|
#else
|
|
bool MBCSSet = false;
|
|
#endif
|
|
|
|
// if neither _UNICODE nor _MBCS is set, CharacterSet must be set to SBCS.
|
|
bool SBCSSet = (!UnicodeSet && !MBCSSet);
|
|
|
|
// Reverse boolean to indicate error case correctly
|
|
return !SBCSSet;
|
|
}
|