1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-04 22:49:07 +02:00

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
This commit is contained in:
Carlo Bramini 2020-04-02 18:44:30 +02:00 committed by GitHub
parent f60bd42e9d
commit 63580910a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 // Force a crash if you misuse _ in a static initializer, so that translation
// is looked up too early and not found. // is looked up too early and not found.
#ifdef _MSC_VER #ifdef __WXMSW__
#define _(s) ((wxTranslations::Get() || (DebugBreak(), true)), \ #define _(s) ((wxTranslations::Get() || (DebugBreak(), true)), \
GetCustomTranslation((s))) GetCustomTranslation((s)))