summaryrefslogtreecommitdiffstats
path: root/linux/Battery.c
diff options
context:
space:
mode:
authorBenny Baumann <BenBE@geshi.org>2020-10-14 20:21:09 +0200
committerBenny Baumann <BenBE@geshi.org>2020-10-16 20:30:21 +0200
commit872e542f4eca52ce2198ba3fc30a51bc5d672dae (patch)
treed47d619840ec26bdc099ceff1351f5e6cc901e1c /linux/Battery.c
parentc6f04a9c5d33d16623f1c20f0987dd3a992379e7 (diff)
Rename StringUtils.[ch] to XUtils.[ch]
Diffstat (limited to 'linux/Battery.c')
-rw-r--r--linux/Battery.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/linux/Battery.c b/linux/Battery.c
index 14fcc90b..faf4064c 100644
--- a/linux/Battery.c
+++ b/linux/Battery.c
@@ -7,11 +7,10 @@ in the source distribution for its full text.
Linux battery readings written by Ian P. Hands (iphands@gmail.com, ihands@redhat.com).
*/
+#include "config.h" // IWYU pragma: keep
+
#include "Battery.h"
-#ifndef _GNU_SOURCE
-#define _GNU_SOURCE
-#endif
#include <dirent.h>
#include <errno.h>
#include <unistd.h>
@@ -20,7 +19,9 @@ Linux battery readings written by Ian P. Hands (iphands@gmail.com, ihands@redhat
#include <fcntl.h>
#include <time.h>
#include <math.h>
-#include "StringUtils.h"
+
+#include "XUtils.h"
+
#define SYS_POWERSUPPLY_DIR "/sys/class/power_supply"