summaryrefslogtreecommitdiff
path: root/src/hub.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2022-12-29 11:02:46 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2022-12-29 11:02:46 (GMT)
commit41db261acccf3494aa93b71a181cde9e8605a841 (patch)
tree07a00f88920a8e601268d415131630052ef85988 /src/hub.c
parentc27f884ec1d18d9cff0d19d6ba8de1dd54d991c4 (diff)
Refactor Makefiles to exclude GTK on demand.
Diffstat (limited to 'src/hub.c')
-rw-r--r--src/hub.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/hub.c b/src/hub.c
index 574bb1c..8a5b6f4 100644
--- a/src/hub.c
+++ b/src/hub.c
@@ -31,7 +31,9 @@
#include <stdlib.h>
#include <string.h>
#include <strings.h>
-#include <gtk/gtk.h>
+#ifdef HAVE_GTK_SUPPORT
+# include <gtk/gtk.h>
+#endif
#include <config.h>
@@ -354,7 +356,9 @@ int main(int argc, char **argv)
/* Initialisation de GTK */
g_set_prgname("Chrysalide Hub");
+#ifdef HAVE_GTK_SUPPORT
gtk_init(&argc, &argv);
+#endif
/* Initialisation du programme */