Files
CMake/Tests/RunCMake/MsvcCharsetDefines/checker.c
T
Brad King 948b2fe31a CMP0204: Remove redundant cases from RunCMake.MsvcCharsetDefines
A single executable for each policy/charset combination is sufficient.
The behavior is the same across target types.

The "OLD" cases are not needed because "WARN" has the same behavior.

The `-D` cases are not needed because `target_compile_definitions`
strips the `-D` prefix before populating `COMPILE_DEFINITIONS`.
2025-10-12 11:11:41 -04:00

52 lines
1.0 KiB
C

#pragma once
#ifdef MUST_HAVE_DEFINE_MBCS
# ifndef _MBCS
# error "_MBCS is not defined, but it should be"
# endif
# if !defined(__BORLANDC__)
# if _MBCS != 1
# error "_MBCS is not defined as 1, but it should be"
# endif
# endif
#else
# ifdef _MBCS
# error "_MBCS is defined, but it should not be"
# endif
#endif
#ifdef MUST_HAVE_DEFINE_SBCS
# ifndef _SBCS
# error "_SBCS is not defined, but it should be"
# endif
# if !defined(__BORLANDC__)
# if _SBCS != 1
# error "_SBCS is not defined as 1, but it should be"
# endif
# endif
#else
# ifdef _SBCS
# error "_SBCS is defined, but it should not be"
# endif
#endif
#ifdef MUST_HAVE_DEFINE_UNICODE
# ifndef _UNICODE
# error "_UNICODE is not defined, but it should be"
# endif
# if !defined(__BORLANDC__)
# if _UNICODE != 1
# error "_UNICODE is not defined as 1, but it should be"
# endif
# endif
#else
# ifdef _UNICODE
# error "_UNICODE is defined, but it should not be"
# endif
#endif
int main(void)
{
return 0;
}