From e57d2dc3e425e185d89149da53d4e3771f91933b Mon Sep 17 00:00:00 2001 From: klugier Date: Sun, 11 Oct 2020 08:48:05 +0000 Subject: [PATCH] Ide: About box now detects latest version of c++ and show only one version. git-svn-id: svn://ultimatepp.org/upp/trunk@15230 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/ide/About.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/uppsrc/ide/About.cpp b/uppsrc/ide/About.cpp index 3a1560c70..cec89e292 100644 --- a/uppsrc/ide/About.cpp +++ b/uppsrc/ide/About.cpp @@ -31,11 +31,14 @@ String SplashCtrl::GenerateVersionInfo(char separator) h << " (GCC)"; #endif #endif -#if __cplusplus >= 201100 - h << " (C++11)"; -#endif -#if __cplusplus >= 201400 +#if __cplusplus >= 202000 + h << " (C++20)"; +#elif __cplusplus >= 201700 + h << " (C++17)"; +#elif __cplusplus >= 201400 h << " (C++14)"; +#elif __cplusplus >= 201100 + h << " (C++11)"; #endif #ifdef GUI_GTK h << " (Gtk)";