Avoid compil warning (when possible) about deprecated GetArchName() in wx >=3.1.5.
Use GetArchName() in wx >= 3.1.6.
This commit is contained in:
parent
4e4b0962db
commit
4be4c5f4a1
|
@ -55,7 +55,11 @@ wxString GetPlatformGetBitnessName()
|
|||
{
|
||||
wxPlatformInfo platform;
|
||||
// TODO (ISM): Read conditional once our wx fork and flatpaks are running released 3.1.5
|
||||
#if 0 && wxCHECK_VERSION( 3, 1, 5 )
|
||||
// On Windows, use GetBitnessName if exists
|
||||
// I (J-PC) hope 3.1.6 has no problem
|
||||
#if defined( __WINDOWS__ ) && wxCHECK_VERSION( 3, 1, 5 )
|
||||
return platform.GetBitnessName();
|
||||
#elif wxCHECK_VERSION( 3, 1, 6 )
|
||||
return platform.GetBitnessName();
|
||||
#else
|
||||
return platform.GetArchName();
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* This program source code file is part of KiCad, a free EDA CAD application.
|
||||
*
|
||||
* Copyright (C) 2010 Rafael Sokolowski <Rafael.Sokolowski@web.de>
|
||||
* Copyright (C) 2010-2021 KiCad Developers, see AUTHORS.txt for contributors.
|
||||
* Copyright (C) 2010-2022 KiCad Developers, see AUTHORS.txt for contributors.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
|
@ -102,18 +102,11 @@ static void buildKicadAboutBanner( EDA_BASE_FRAME* aParent, ABOUT_APP_INFO& aInf
|
|||
wxPlatformInfo platformInfo;
|
||||
|
||||
libVersion << "Platform: " << wxGetOsDescription() << ", "
|
||||
// TODO (ISM): Readd conditional once our wx fork and flatpaks are running released 3.1.5
|
||||
#if 0 && wxCHECK_VERSION( 3, 1, 5 )
|
||||
<< platformInfo.GetBitnessName();
|
||||
#else
|
||||
<< platformInfo.GetArchName();
|
||||
#endif
|
||||
<< GetPlatformGetBitnessName();
|
||||
|
||||
aInfo.SetLibVersion( libVersion );
|
||||
|
||||
|
||||
/* info/description part HTML formatted */
|
||||
|
||||
// info/description part HTML formatted:
|
||||
wxString description;
|
||||
|
||||
/* short description */
|
||||
|
@ -510,7 +503,7 @@ static void buildKicadAboutBanner( EDA_BASE_FRAME* aParent, ABOUT_APP_INFO& aInf
|
|||
aInfo.AddDeveloper( new CONTRIBUTOR( wxT( "Jonathan Warner" ), CONTRIB_DEV, nullptr ) );
|
||||
aInfo.AddDeveloper( new CONTRIBUTOR( wxT( "Dan Weatherill" ), CONTRIB_DEV, nullptr ) );
|
||||
aInfo.AddDeveloper( new CONTRIBUTOR( wxT( "Stefan Weber" ), CONTRIB_DEV, nullptr ) );
|
||||
aInfo.AddDeveloper( new CONTRIBUTOR( wxT( "Simon Wells" ), CONTRIB_DEV, nullptr ) );
|
||||
aInfo.AddDeveloper( new CONTRIBUTOR( wxT( "Simon Wells" ), CONTRIB_DEV, nullptr ) );
|
||||
aInfo.AddDeveloper( new CONTRIBUTOR( wxT( "Dominik Wernberger" ), CONTRIB_DEV, nullptr ) );
|
||||
aInfo.AddDeveloper( new CONTRIBUTOR( wxT( "Mike Williams" ), CONTRIB_DEV, nullptr ) );
|
||||
aInfo.AddDeveloper( new CONTRIBUTOR( wxT( "Nick Winters" ), CONTRIB_DEV, nullptr ) );
|
||||
|
|
Loading…
Reference in New Issue