summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2021-05-02 20:03:03 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2021-05-02 20:03:03 +0900
commit0d040704e12208aa4a6baf2788dabe2e8bff607c (patch)
tree065707377dfe2146b6f42f055eabdf99d4ee9784
parentc4a0aea65da598ce3aa78a66d8585e37caa811bd (diff)
downloadkima-0d040704e12208aa4a6baf2788dabe2e8bff607c.tar.gz
kima-0d040704e12208aa4a6baf2788dabe2e8bff607c.zip
Small improvement on code for building without tdehw.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
-rw-r--r--src/sources/batterysrc.h5
1 files changed, 5 insertions, 0 deletions
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 <tqstring.h>
#include <list>
+#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