summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Wold <[email protected]>2019-02-11 15:25:06 -0500
committerraveit65 <[email protected]>2019-03-10 15:11:45 +0100
commit3870e8a3f6b4c3e9c1d4646e933365a586d375db (patch)
tree7db6c3e4d896c5b46f053f9d499b10fd18fdd907
parentcaa1b2a146ae182f85028259153e98e858384611 (diff)
downloadmate-panel-3870e8a3f6b4c3e9c1d4646e933365a586d375db.tar.bz2
mate-panel-3870e8a3f6b4c3e9c1d4646e933365a586d375db.tar.xz
Error if compiling panel-plug-private.h without X11 support
-rw-r--r--libmate-panel-applet/panel-plug-private.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libmate-panel-applet/panel-plug-private.h b/libmate-panel-applet/panel-plug-private.h
index 0f5933f0..82e0ac05 100644
--- a/libmate-panel-applet/panel-plug-private.h
+++ b/libmate-panel-applet/panel-plug-private.h
@@ -20,6 +20,12 @@
#ifndef PANEL_PLUG_PRIVATE_H
#define PANEL_PLUG_PRIVATE_H
+#ifdef PACKAGE_NAME // only check HAVE_X11 if config.h has been included
+#ifndef HAVE_X11
+#error file should only be included when HAVE_X11 is enabled
+#endif
+#endif
+
#include <gtk/gtk.h>
#include <gtk/gtkx.h>