brewpanel/brewpanel.c

changeset 410
e3f8a51b566a
parent 409
cdf68044adaf
child 425
c51265b518ce
--- a/brewpanel/brewpanel.c	Sat Nov 07 22:04:17 2015 +0100
+++ b/brewpanel/brewpanel.c	Sat Nov 07 22:34:28 2015 +0100
@@ -24,6 +24,7 @@
 #include "sdlgui.h"
 #include "dlgBrew.h"
 
+#ifdef HAVE_SDL_SDL_H
 
 int			DebugPanel = FALSE;		/* Logfile debugging		*/
 int			debug = FALSE;			/* Console debugging		*/
@@ -161,4 +162,13 @@
     return 0;
 }
 
+#else
 
+int main(int argc, char *argv[])
+{
+    fprintf(stderr, "brewpanel not compiled because SDL is missing.\n");
+    return 1;
+}
+
+#endif
+

mercurial