summaryrefslogtreecommitdiff
path: root/src/hub.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/hub.c')
-rw-r--r--src/hub.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/hub.c b/src/hub.c
index 574bb1c..6e4f64d 100644
--- a/src/hub.c
+++ b/src/hub.c
@@ -31,10 +31,11 @@
#include <stdlib.h>
#include <string.h>
#include <strings.h>
-#include <gtk/gtk.h>
+#ifdef INCLUDE_GTK_SUPPORT
+# include <gtk/gtk.h>
+#endif
-#include <config.h>
#include <i18n.h>
@@ -354,7 +355,9 @@ int main(int argc, char **argv)
/* Initialisation de GTK */
g_set_prgname("Chrysalide Hub");
+#ifdef INCLUDE_GTK_SUPPORT
gtk_init(&argc, &argv);
+#endif
/* Initialisation du programme */