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

Fix mod-nyq-bench compilation under Windows.

This commit is contained in:
James Crook 2018-04-05 18:12:34 +01:00
parent af54ac9cf6
commit 0885fda459
5 changed files with 9 additions and 7 deletions

View File

@ -43,7 +43,7 @@
#define __AUDACITY_IDENTINTERFACE_H__
#include "audacity/Types.h"
extern const wxString& GetCustomTranslation(const wxString& str1 );
extern AUDACITY_DLL_API const wxString& GetCustomTranslation(const wxString& str1 );
/**************************************************************************//**

View File

@ -193,6 +193,7 @@ extern "C"
c->SetDefaultFlags(AudioIONotBusyFlag, AudioIONotBusyFlag);
c->AddItem(wxT("NyqBench"),
_("&Nyquist Workbench..."),
true,
findme,
static_cast<CommandFunctorPointer>(&NyqBench::ShowNyqBench));

View File

@ -46,7 +46,7 @@ wxCharBuffer Internat::mFilename;
// This function allows us to replace Audacity by DarkAudacity without peppering
// the source code with changes. We split out this step, the customisation, as
// it is used on its own (without translation) in the wxTS macro.
const wxString& GetCustomSubstitution(const wxString& str2)
AUDACITY_DLL_API const wxString& GetCustomSubstitution(const wxString& str2)
{
// If contains 'DarkAudacity, already converted.
if( str2.Contains( "DarkAudacity" ))
@ -64,7 +64,7 @@ const wxString& GetCustomSubstitution(const wxString& str2)
return wxTranslations::GetUntranslatedString(str3);
}
#else
const wxString& GetCustomSubstitution(const wxString& str1)
AUDACITY_DLL_API const wxString& GetCustomSubstitution(const wxString& str1)
{
return str1 ;
}
@ -72,7 +72,7 @@ const wxString& GetCustomSubstitution(const wxString& str1)
// In any translated string, we can replace the name 'Audacity' by 'DarkAudacity'
// without requiring translators to see extra strings for the two versions.
const wxString& GetCustomTranslation(const wxString& str1)
AUDACITY_DLL_API const wxString& GetCustomTranslation(const wxString& str1)
{
const wxString& str2 = wxGetTranslation( str1 );
return GetCustomSubstitution( str2 );

View File

@ -19,11 +19,12 @@
#include <algorithm>
#ifndef IN_RC
#include "Audacity.h"
class wxString;
extern const wxString& GetCustomTranslation(const wxString& str1 );
extern const wxString& GetCustomSubstitution(const wxString& str1 );
extern AUDACITY_DLL_API const wxString& GetCustomTranslation(const wxString& str1 );
extern AUDACITY_DLL_API const wxString& GetCustomSubstitution(const wxString& str1 );
// Marks string for substitution only.
#define _TS( s ) GetCustomSubstitution( s )

View File

@ -22,7 +22,7 @@ class wxEvent;
class CommandOutputTargets;
using CommandParameter = wxString;
class CommandContext {
class AUDACITY_DLL_API CommandContext {
public:
CommandContext(
AudacityProject &p