summaryrefslogtreecommitdiff
path: root/src/trg-torrent-graph.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/trg-torrent-graph.c')
-rw-r--r--src/trg-torrent-graph.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/trg-torrent-graph.c b/src/trg-torrent-graph.c
index 94c4ecc..0b47bab 100644
--- a/src/trg-torrent-graph.c
+++ b/src/trg-torrent-graph.c
@@ -27,13 +27,15 @@
* on this widget but with some improvements I didn't do.
*/
+#include "trg-torrent-graph.h"
+
+#if TRG_WITH_GRAPH
+
#include <math.h>
#include <glib.h>
#include <cairo.h>
#include <glib/gi18n.h>
#include <gtk/gtk.h>
-
-#include "trg-torrent-graph.h"
#include "util.h"
/* damn you freebsd */
@@ -633,3 +635,5 @@ unsigned trg_torrent_graph_get_num_bars(TrgTorrentGraph * g)
return n;
}
+
+#endif