mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-05 13:50:10 -05:00
948b2fe31a
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`.
52 lines
1.0 KiB
C
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;
|
|
}
|