summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-10-02 12:16:52 +0200
committerMax Kellermann <max@duempel.org>2013-10-02 12:16:52 +0200
commitefc3a69dbf17affd067d25d0f89bf09aacb3aa8e (patch)
tree621bd1675105f05aad87a7a36e3712aaaca02dc5
parentec883e1901cb14c1719345b47e8e2ba4a0f925b4 (diff)
Stats: don't include glib.h in header
Use forward declaration instead.
-rw-r--r--src/OtherCommands.cxx2
-rw-r--r--src/Stats.cxx2
-rw-r--r--src/Stats.hxx3
3 files changed, 5 insertions, 2 deletions
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 <glib.h>
+
#include <assert.h>
#include <string.h>
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 <glib.h>
+
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 <glib.h>
-
class Client;
+typedef struct _GTimer GTimer;
struct stats {
GTimer *timer;