From: <sv...@op...> - 2025-02-15 16:52:50
|
Author: manx Date: Sat Feb 15 17:52:38 2025 New Revision: 22907 URL: https://source.openmpt.org/browse/openmpt/?op=revision&rev=22907 Log: Merged revision(s) 22889 from trunk/OpenMPT: [Ref] mpt/check/compiler.hpp: Detect missing exceptions support on MSVC. ........ Modified: branches/OpenMPT-1.31/ (props changed) branches/OpenMPT-1.31/src/mpt/check/compiler.hpp Modified: branches/OpenMPT-1.31/src/mpt/check/compiler.hpp ============================================================================== --- branches/OpenMPT-1.31/src/mpt/check/compiler.hpp Sat Feb 15 17:47:49 2025 (r22906) +++ branches/OpenMPT-1.31/src/mpt/check/compiler.hpp Sat Feb 15 17:52:38 2025 (r22907) @@ -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 |