From 63580910a22e71e3c8db83e636995f6a6850ecc9 Mon Sep 17 00:00:00 2001 From: Carlo Bramini <30959007+carlo-bramini@users.noreply.github.com> Date: Thu, 2 Apr 2020 18:44:30 +0200 Subject: [PATCH] Internat: use _WIN32 instead of _MSC_VER for DebugBreak() (#475) * Internat: use _WIN32 instead of _MSC_VER for DebugBreak() For compiling with MinGW, it is required that it uses the same code of Visual Studio when __WXDEBUG__ is defined. * Internat: replace previous _WIN32 with WXMSW --- src/Internat.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Internat.h b/src/Internat.h index 89eb92bee..3c0eb6675 100644 --- a/src/Internat.h +++ b/src/Internat.h @@ -42,7 +42,7 @@ extern AUDACITY_DLL_API const wxString& GetCustomSubstitution(const wxString& st // Force a crash if you misuse _ in a static initializer, so that translation // is looked up too early and not found. - #ifdef _MSC_VER + #ifdef __WXMSW__ #define _(s) ((wxTranslations::Get() || (DebugBreak(), true)), \ GetCustomTranslation((s)))