2016-05-16 17:34:04 +03:00
|
|
|
// Test to verify that _SBCS being defined causes CharacterSet to be set to 0
|
|
|
|
// (Single Byte Character Set)
|
2012-02-17 01:27:05 +04:00
|
|
|
|
2016-05-16 17:34:04 +03:00
|
|
|
int main()
|
2012-02-17 01:27:05 +04:00
|
|
|
{
|
|
|
|
#ifdef _UNICODE
|
2016-05-16 17:34:04 +03:00
|
|
|
bool UnicodeSet = true;
|
2012-02-17 01:27:05 +04:00
|
|
|
#else
|
2016-05-16 17:34:04 +03:00
|
|
|
bool UnicodeSet = false;
|
2012-02-17 01:27:05 +04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef _MBCS
|
2016-05-16 17:34:04 +03:00
|
|
|
bool MBCSSet = true;
|
2012-02-17 01:27:05 +04:00
|
|
|
#else
|
2016-05-16 17:34:04 +03:00
|
|
|
bool MBCSSet = false;
|
2012-02-17 01:27:05 +04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
// if neither _UNICODE nor _MBCS is set, CharacterSet must be set to SBCS.
|
2016-05-16 17:34:04 +03:00
|
|
|
bool SBCSSet = (!UnicodeSet && !MBCSSet);
|
2012-02-17 01:27:05 +04:00
|
|
|
|
|
|
|
// Reverse boolean to indicate error case correctly
|
|
|
|
return !SBCSSet;
|
|
|
|
}
|