Build fix for wxUSE_CONFIG==0

This commit is contained in:
Paul Cornett 2023-11-15 20:36:21 -08:00
parent 67090e61d2
commit 86a0456bc4

View file

@ -1144,6 +1144,7 @@ wxString wxGetNativeCpuArchitectureName()
static bool
wxGetValuesFromOSRelease(const wxString& filename, wxLinuxDistributionInfo& ret)
{
#if wxUSE_CONFIG
if ( !wxFileName::Exists(filename) )
{
return false;
@ -1156,6 +1157,9 @@ wxGetValuesFromOSRelease(const wxString& filename, wxLinuxDistributionInfo& ret)
ret.CodeName = fc.Read(wxS("VERSION_CODENAME"), wxEmptyString);
return true;
#else
return false;
#endif
}
static bool