From: <sv...@op...> - 2025-03-10 14:27:31
|
Author: manx Date: Mon Mar 10 15:27:09 2025 New Revision: 23011 URL: https://source.openmpt.org/browse/openmpt/?op=revision&rev=23011 Log: [Ref] libopenmpt: Check ENABLE_TESTS instead of MPT_ENABLE_FILEIO for compile-time warning. Modified: trunk/OpenMPT/libopenmpt/libopenmpt_impl.cpp Modified: trunk/OpenMPT/libopenmpt/libopenmpt_impl.cpp ============================================================================== --- trunk/OpenMPT/libopenmpt/libopenmpt_impl.cpp Mon Mar 10 15:25:30 2025 (r23010) +++ trunk/OpenMPT/libopenmpt/libopenmpt_impl.cpp Mon Mar 10 15:27:09 2025 (r23011) @@ -77,13 +77,13 @@ MPT_WARNING("Warning: libopenmpt is known to trigger bad code generation with Clang 5..10 on powerpc (32bit) when using -O3. See <https://bugs.llvm.org/show_bug.cgi?id=46683>.") #endif -#if defined(MPT_ENABLE_FILEIO) +#if defined(ENABLE_TESTS) #if defined(MPT_COMPILER_QUIRK_WINDOWS_FSTREAM_NO_WCHAR) #if MPT_GCC_BEFORE(9,1,0) MPT_WARNING("Warning: MinGW with GCC earlier than 9.1 detected. Standard library does neither provide std::fstream wchar_t overloads nor std::filesystem with wchar_t support. Unicode filename support is thus unavailable.") #endif // MPT_GCC_AT_LEAST(9,1,0) #endif // MPT_COMPILER_QUIRK_WINDOWS_FSTREAM_NO_WCHAR -#endif // MPT_ENABLE_FILEIO +#endif // ENABLE_TESTS #endif // !MPT_BUILD_SILENCE_LIBOPENMPT_CONFIGURATION_WARNINGS |