From 57e0ce7b4ffce8cf41bd3003831198d0bb38ebf2 Mon Sep 17 00:00:00 2001 From: Benny Baumann Date: Sat, 20 Mar 2021 11:21:20 +0100 Subject: 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. --- DisplayOptionsPanel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'DisplayOptionsPanel.c') 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", -- cgit v1.2.3