diff --git a/linux/Battery.c b/linux/Battery.c index e45afa4e..6ea48c45 100644 --- a/linux/Battery.c +++ b/linux/Battery.c @@ -7,6 +7,8 @@ in the source distribution for its full text. Linux battery readings written by Ian P. Hands (iphands@gmail.com, ihands@redhat.com). */ +#include "Battery.h" + #ifndef _GNU_SOURCE #define _GNU_SOURCE #endif @@ -18,7 +20,6 @@ Linux battery readings written by Ian P. Hands (iphands@gmail.com, ihands@redhat #include #include #include -#include "BatteryMeter.h" #include "StringUtils.h" #define SYS_POWERSUPPLY_DIR "/sys/class/power_supply" diff --git a/linux/Battery.h b/linux/Battery.h index 8ca0d7fb..3b3d2382 100644 --- a/linux/Battery.h +++ b/linux/Battery.h @@ -9,6 +9,8 @@ in the source distribution for its full text. Linux battery readings written by Ian P. Hands (iphands@gmail.com, ihands@redhat.com). */ +#include "BatteryMeter.h" + void Battery_getData(double* level, ACPresence* isOnAC); #endif