From: Christian Ruppert Date: Mon, 2 Nov 2009 22:16:09 +0000 (+0000) Subject: Fix undefined reference to `cleanup_battery' when using --disable-battery. X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=d9d566d12cd85b509a8bbc74143e94812ed854d0;p=chaz%2Ftint2 Fix undefined reference to `cleanup_battery' when using --disable-battery. --- diff --git a/src/config.c b/src/config.c index 5a62704..f7e6d60 100644 --- a/src/config.c +++ b/src/config.c @@ -73,7 +73,9 @@ void init_config() // tint2 could reload config, so we cleanup objects cleanup_systray(); +#ifdef ENABLE_BATTERY cleanup_battery(); +#endif cleanup_clock(); cleanup_tooltip();