From: <sv...@op...> - 2025-02-15 16:13:00
|
Author: manx Date: Sat Feb 15 17:12:54 2025 New Revision: 22889 URL: https://source.openmpt.org/browse/openmpt/?op=revision&rev=22889 Log: [Ref] mpt/check/compiler.hpp: Detect missing exceptions support on MSVC. Modified: trunk/OpenMPT/src/mpt/check/compiler.hpp Modified: trunk/OpenMPT/src/mpt/check/compiler.hpp ============================================================================== --- trunk/OpenMPT/src/mpt/check/compiler.hpp Sat Feb 15 17:12:03 2025 (r22888) +++ trunk/OpenMPT/src/mpt/check/compiler.hpp Sat Feb 15 17:12:54 2025 (r22889) @@ -38,11 +38,15 @@ #endif #ifndef MPT_CHECK_CXX_IGNORE_WARNING_NO_EXCEPTIONS -#if MPT_COMPILER_GCC +#if MPT_COMPILER_MSVC +#if !defined(_CPPUNWIND) +MPT_WARNING("C++ compiler has no exception support.") +#endif +#elif MPT_COMPILER_GCC #if (!defined(__EXCEPTIONS) || (__EXCEPTIONS != 1)) MPT_WARNING("C++ compiler has no exception support.") #endif -#elif MPT_COMPILER_CLANG && !defined(_MSC_VER) +#elif MPT_COMPILER_CLANG #if (!defined(__EXCEPTIONS) || (__EXCEPTIONS != 1)) MPT_WARNING("C++ compiler has no exception support.") #endif |