From efc3a69dbf17affd067d25d0f89bf09aacb3aa8e Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 2 Oct 2013 12:16:52 +0200 Subject: Stats: don't include glib.h in header Use forward declaration instead. --- src/OtherCommands.cxx | 2 ++ src/Stats.cxx | 2 ++ src/Stats.hxx | 3 +-- 3 files changed, 5 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/OtherCommands.cxx b/src/OtherCommands.cxx index e22c8d093..52899d184 100644 --- a/src/OtherCommands.cxx +++ b/src/OtherCommands.cxx @@ -47,6 +47,8 @@ #include "StickerDatabase.hxx" #endif +#include + #include #include diff --git a/src/Stats.cxx b/src/Stats.cxx index 6de3714fb..463937b48 100644 --- a/src/Stats.cxx +++ b/src/Stats.cxx @@ -28,6 +28,8 @@ #include "util/Error.hxx" #include "Log.hxx" +#include + struct stats stats; void stats_global_init(void) diff --git a/src/Stats.hxx b/src/Stats.hxx index 384179242..1827b8847 100644 --- a/src/Stats.hxx +++ b/src/Stats.hxx @@ -20,9 +20,8 @@ #ifndef MPD_STATS_HXX #define MPD_STATS_HXX -#include - class Client; +typedef struct _GTimer GTimer; struct stats { GTimer *timer; -- cgit v1.2.3