From 1c72881eb66f43aa15e5bf0566ebcb8a71a9b8a0 Mon Sep 17 00:00:00 2001 From: aybe Date: Sun, 14 Jul 2024 23:12:30 +0200 Subject: [PATCH] Try fix Linux/Mac errors --- src/libs/gui_tk/gui_tk.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/src/libs/gui_tk/gui_tk.h b/src/libs/gui_tk/gui_tk.h index ead2bc0672..e5baef352a 100644 --- a/src/libs/gui_tk/gui_tk.h +++ b/src/libs/gui_tk/gui_tk.h @@ -981,6 +981,33 @@ struct ThemeWindows31Wingtips : ThemeWindows31 } }; +// for pre-C++17 Linux/Mac +// NOLINTBEGIN(readability-redundant-declaration, clang-diagnostic-deprecated-redundant-constexpr-static-def) +constexpr const char* ThemeWindows31WindowsDefault::Name; +constexpr const char* ThemeWindows31Arizona::Name; +constexpr const char* ThemeWindows31BlackLeatherJacket::Name; +constexpr const char* ThemeWindows31Bordeaux::Name; +constexpr const char* ThemeWindows31Cinnamon::Name; +constexpr const char* ThemeWindows31Designer::Name; +constexpr const char* ThemeWindows31EmeraldCity::Name; +constexpr const char* ThemeWindows31Fluorescent::Name; +constexpr const char* ThemeWindows31HotDogStand::Name; +constexpr const char* ThemeWindows31LCDDefaultScreenSettings::Name; +constexpr const char* ThemeWindows31LCDReversedDark::Name; +constexpr const char* ThemeWindows31LCDReversedLight::Name; +constexpr const char* ThemeWindows31Mahogany::Name; +constexpr const char* ThemeWindows31Monochrome::Name; +constexpr const char* ThemeWindows31Ocean::Name; +constexpr const char* ThemeWindows31Pastel::Name; +constexpr const char* ThemeWindows31Patchwork::Name; +constexpr const char* ThemeWindows31PlasmaPowerSaver::Name; +constexpr const char* ThemeWindows31Rugby::Name; +constexpr const char* ThemeWindows31TheBlues::Name; +constexpr const char* ThemeWindows31Tweed::Name; +constexpr const char* ThemeWindows31Valentine::Name; +constexpr const char* ThemeWindows31Wingtips::Name; +// NOLINTEND(readability-redundant-declaration, clang-diagnostic-deprecated-redundant-constexpr-static-def) + /// Identifies a mouse button. enum MouseButton { NoButton, Left, Right, Middle, WheelUp, WheelDown, WheelLeft, WheelRight };