From 5ffccc5019d51f2ed299f5757945cda36a2046a3 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Sat, 11 Dec 2021 13:34:11 -0500 Subject: [PATCH] GUI: compile with no GUI --- src/main.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 6171aabe..b55880c5 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -308,10 +308,13 @@ int main(int argc, char** argv) { return 0; } +#ifdef HAVE_GUI g.bindEngine(&e); g.init(); g.loop(); - +#else + logE("GUI requested but GUI not compiled!\n"); +#endif return 0; }