summaryrefslogtreecommitdiffstats
path: root/DisplayOptionsPanel.c
diff options
context:
space:
mode:
authorBenny Baumann <BenBE@geshi.org>2021-03-20 11:21:20 +0100
committercgzones <cgzones@googlemail.com>2021-03-21 21:49:04 +0100
commit57e0ce7b4ffce8cf41bd3003831198d0bb38ebf2 (patch)
treefb8d84bb5068ba69535ce759766ab498916894d4 /DisplayOptionsPanel.c
parent1cb3aee07a5be99dff3407ff9b5de0d63b330177 (diff)
Use `#if defined()` syntax when `#elif defined()` is present
This prefers the `#if defined()` syntax over the `#ifdef` variant whenever there's also a `#elif defined()` clause, thus making the multiple branching structure more obvious and the overall use more consistent.
Diffstat (limited to 'DisplayOptionsPanel.c')
-rw-r--r--DisplayOptionsPanel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/DisplayOptionsPanel.c b/DisplayOptionsPanel.c
index 884045f3..dd26989f 100644
--- a/DisplayOptionsPanel.c
+++ b/DisplayOptionsPanel.c
@@ -120,7 +120,7 @@ DisplayOptionsPanel* DisplayOptionsPanel_new(Settings* settings, ScreenManager*
Panel_add(super, (Object*) CheckItem_newByRef("Also show CPU frequency", &(settings->showCPUFrequency)));
#ifdef BUILD_WITH_CPU_TEMP
Panel_add(super, (Object*) CheckItem_newByRef(
- #ifdef HTOP_LINUX
+ #if defined(HTOP_LINUX)
"Also show CPU temperature (requires libsensors)",
#elif defined(HTOP_FREEBSD)
"Also show CPU temperature",

© 2014-2024 Faster IT GmbH | imprint | privacy policy