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