From: <sv...@op...> - 2024-11-11 08:14:29
|
Author: sagamusix Date: Mon Nov 11 09:14:17 2024 New Revision: 22155 URL: https://source.openmpt.org/browse/openmpt/?op=revision&rev=22155 Log: [Fix] Fix ANSI builds. CTaskDialog is only available on UNICODE. Modified: trunk/OpenMPT/mptrack/dlg_misc.cpp Modified: trunk/OpenMPT/mptrack/dlg_misc.cpp ============================================================================== --- trunk/OpenMPT/mptrack/dlg_misc.cpp Sun Nov 10 23:19:43 2024 (r22154) +++ trunk/OpenMPT/mptrack/dlg_misc.cpp Mon Nov 11 09:14:17 2024 (r22155) @@ -25,7 +25,7 @@ #include "../soundlib/mod_specifications.h" #include "../soundlib/plugins/PlugInterface.h" -#if MPT_WINNT_AT_LEAST(MPT_WIN_VISTA) +#if MPT_WINNT_AT_LEAST(MPT_WIN_VISTA) && defined(UNICODE) #include <afxtaskdialog.h> #endif @@ -1581,7 +1581,7 @@ if((TrackerSettings::Instance().gnMsgBoxVisiblityFlags & msg.mask) == 0) return; -#if MPT_WINNT_AT_LEAST(MPT_WIN_VISTA) +#if MPT_WINNT_AT_LEAST(MPT_WIN_VISTA) && defined(UNICODE) if(CTaskDialog::IsSupported() && !(mpt::OS::Windows::IsWine() && theApp.GetWineVersion()->Version().IsBefore(mpt::OS::Wine::Version(3, 13, 0)))) { |