GUI: compile with no GUI

This commit is contained in:
tildearrow 2021-12-11 13:34:11 -05:00
parent af56e3b9dd
commit 5ffccc5019

View file

@ -308,10 +308,13 @@ int main(int argc, char** argv) {
return 0; return 0;
} }
#ifdef HAVE_GUI
g.bindEngine(&e); g.bindEngine(&e);
g.init(); g.init();
g.loop(); g.loop();
#else
logE("GUI requested but GUI not compiled!\n");
#endif
return 0; return 0;
} }