aboutsummaryrefslogtreecommitdiff
path: root/src/forms
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2017-12-14 08:37:00 +0100
committerAqua-sama <aqua@iserlohn-fortress.net>2017-12-14 08:37:00 +0100
commitb6fed191eae8bd52986f4c4adb1b091ed033e4f1 (patch)
tree3849395539af2c6fcaa3eb93b7cd9a14e04d6c5e /src/forms
parentUpdated documentation (diff)
downloadsmolbote-b6fed191eae8bd52986f4c4adb1b091ed033e4f1.tar.xz
Fixed getCompiler build failure with gcc
Diffstat (limited to 'src/forms')
-rw-r--r--src/forms/aboutdialog.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/forms/aboutdialog.cpp b/src/forms/aboutdialog.cpp
index addf66c..d91b39f 100644
--- a/src/forms/aboutdialog.cpp
+++ b/src/forms/aboutdialog.cpp
@@ -73,11 +73,11 @@ AboutDialog::~AboutDialog()
constexpr const char *getCompiler()
{
- if(__clang__) {
- return "Clang " __clang_version__;
- } else if(__GNUC__) {
- return "GCC " __VERSION__;
- } else {
- return "unknown compiler";
- }
+#if defined(__clang__)
+ return "Clang " __clang_version__;
+#elif defined(__GNUC__)
+ return "GCC " __VERSION__;
+#else
+ return "unknown compiler";
+#endif
}