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:
parent
f60bd42e9d
commit
63580910a2
@ -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)))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user