From 0d040704e12208aa4a6baf2788dabe2e8bff607c Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sun, 2 May 2021 20:03:03 +0900 Subject: [PATCH] Small improvement on code for building without tdehw. Signed-off-by: Michele Calgaro --- src/sources/batterysrc.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/sources/batterysrc.h b/src/sources/batterysrc.h index a61883c..bcd805f 100644 --- a/src/sources/batterysrc.h +++ b/src/sources/batterysrc.h @@ -26,7 +26,12 @@ #include #include +#ifdef __TDE_HAVE_TDEHWLIB class TDEHardwareDevices; +#else +#define TDEHardwareDevices void +#endif + /** * BatterySrc fetches the state of charge of the battery from HAL * @author Ken Werner