From e79d4932ea413c277425ff92c456741e0730c3d6 Mon Sep 17 00:00:00 2001 From: Aaron Marcher Date: Wed, 21 Mar 2018 12:21:37 +0100 Subject: More robust preprocessor switches Replace #ifdef with #if defined() and #elif with #elif defined() as it should only test if it is defined or not. --- components/temperature.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'components/temperature.c') diff --git a/components/temperature.c b/components/temperature.c index 6376e30..4a447e5 100644 --- a/components/temperature.c +++ b/components/temperature.c @@ -1,5 +1,5 @@ /* See LICENSE file for copyright and license details. */ -#ifdef __linux__ +#if defined(__linux__) #include #include "../util.h" -- cgit v1.2.3