Skip to content

Commit fbca141

Browse files
committed
[Ref] mptFileIO: Move libopenmpt build-time warning into libopenmpt/libopenmpt_impl.cpp.
git-svn-id: https://source.openmpt.org/svn/openmpt/trunk/OpenMPT@22980 56274372-70c3-4bfc-bfc3-4c3a0b034d27
1 parent 3b94160 commit fbca141

File tree

2 files changed

+6
-12
lines changed

2 files changed

+6
-12
lines changed

common/mptFileIO.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,6 @@ OPENMPT_NAMESPACE_BEGIN
2525

2626
#if defined(MPT_ENABLE_FILEIO)
2727

28-
29-
#if !defined(MPT_BUILD_SILENCE_LIBOPENMPT_CONFIGURATION_WARNINGS)
30-
31-
#if defined(MPT_COMPILER_QUIRK_WINDOWS_FSTREAM_NO_WCHAR)
32-
#if MPT_GCC_BEFORE(9,1,0)
33-
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.")
34-
#endif // MPT_GCC_AT_LEAST(9,1,0)
35-
#endif // MPT_COMPILER_QUIRK_WINDOWS_FSTREAM_NO_WCHAR
36-
37-
#endif // !MPT_BUILD_SILENCE_LIBOPENMPT_CONFIGURATION_WARNINGS
38-
39-
4028
#ifdef MODPLUG_TRACKER
4129

4230
#if MPT_OS_WINDOWS

libopenmpt/libopenmpt_impl.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,12 @@ MPT_WARNING("Warning: Platform (Windows) supports multi-threading, however the t
7777
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>.")
7878
#endif
7979

80+
#if defined(MPT_COMPILER_QUIRK_WINDOWS_FSTREAM_NO_WCHAR)
81+
#if MPT_GCC_BEFORE(9,1,0)
82+
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.")
83+
#endif // MPT_GCC_AT_LEAST(9,1,0)
84+
#endif // MPT_COMPILER_QUIRK_WINDOWS_FSTREAM_NO_WCHAR
85+
8086
#endif // !MPT_BUILD_SILENCE_LIBOPENMPT_CONFIGURATION_WARNINGS
8187

8288
#if defined(MPT_ASSERT_HANDLER_NEEDED) && !defined(ENABLE_TESTS)

0 commit comments

Comments
 (0)