From 31a80fb4d1f4578e212dc0b21ed7e745edadd27e Mon Sep 17 00:00:00 2001 From: Paul Licameli Date: Thu, 16 May 2019 13:44:48 -0400 Subject: [PATCH] Fix Windows build --- src/FileNames.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/FileNames.cpp b/src/FileNames.cpp index 9faa1f9a2..43ac3c7d1 100644 --- a/src/FileNames.cpp +++ b/src/FileNames.cpp @@ -27,6 +27,7 @@ used throughout Audacity into this one place. #include "MemoryX.h" +#include #include #include #include @@ -388,7 +389,7 @@ wxFileNameWrapper FileNames::DefaultToDocumentsFolder(const wxString &preference #ifdef __WIN32__ wxFileName defaultPath( wxStandardPaths::Get().GetDocumentsDir(), "" ); - defaultPath.AppendDir( wxGetApp().GetAppName() ); + defaultPath.AppendDir( wxTheApp->GetAppName() ); result.SetPath( gPrefs->Read( preference, defaultPath.GetPath( wxPATH_GET_VOLUME ) ) ); // MJB: Bug 1899 & Bug 2007. Only create directory if the result is the default path