Revision 00cd7269e10b0a6f0205898dc19e7c93864f5892 authored by Brad King on 11 February 2020, 13:22:40 UTC, committed by Kitware Robot on 11 February 2020, 13:22:49 UTC
ceb5ee4a7b FindOpenMP: Add support for Clang on Windows 2dbff623f9 FindOpenMP: Save flags/libs in cache entries each time they are detected Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4327
SBCS.cxx
// 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;
}
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...