Skip to content

Commit

Permalink
wncklet: Error if compiling without X11 support
Browse files Browse the repository at this point in the history
  • Loading branch information
wmww authored and raveit65 committed Jan 29, 2019
1 parent d7edd93 commit aa4754c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions applets/wncklet/showdesktop.c
Expand Up @@ -25,6 +25,10 @@
#include <config.h> #include <config.h>
#endif #endif


#ifndef HAVE_X11
#error file should only be built when HAVE_X11 is enabled
#endif

#include <glib/gi18n.h> #include <glib/gi18n.h>


#include <gtk/gtk.h> #include <gtk/gtk.h>
Expand Down
4 changes: 4 additions & 0 deletions applets/wncklet/wncklet.c
Expand Up @@ -25,6 +25,10 @@
#include <config.h> #include <config.h>
#endif #endif


#ifndef HAVE_X11
#error file should only be built when HAVE_X11 is enabled
#endif

#include <string.h> #include <string.h>
#include <mate-panel-applet.h> #include <mate-panel-applet.h>


Expand Down

0 comments on commit aa4754c

Please sign in to comment.