From 32f52f0821802aecb1d00dd1054acf25325b8599 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Mon, 22 Feb 2010 16:43:48 +0100 Subject: Compile without GLib (without pain) --- src/dirax.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/dirax.h') diff --git a/src/dirax.h b/src/dirax.h index b6b80488..530d2696 100644 --- a/src/dirax.h +++ b/src/dirax.h @@ -17,8 +17,19 @@ #include #endif +#include "utils.h" + +#if HAVE_GLIB extern void run_dirax(struct image *image); +#else + +static void run_dirax(struct image *image) +{ + ERROR("Can't run DirAx without GLib.\n"); +} + +#endif #endif /* DIRAX_H */ -- cgit v1.2.3