summaryrefslogtreecommitdiff
path: root/mate-panel/panel-struts.h
diff options
context:
space:
mode:
authorWilliam Wold <[email protected]>2019-06-17 20:39:33 +0000
committerraveit65 <[email protected]>2019-06-23 10:12:24 +0200
commit8c378192fd449f2877525ea603ca9083c202cfcb (patch)
treeda9bea375429b76209d45a7b5e0f5d5f1a1a097d /mate-panel/panel-struts.h
parentffa9cef172aeb9087a59f2b78ce5362bd1bcd510 (diff)
downloadmate-panel-8c378192fd449f2877525ea603ca9083c202cfcb.tar.bz2
mate-panel-8c378192fd449f2877525ea603ca9083c202cfcb.tar.xz
Make panel-struts X11-only
Diffstat (limited to 'mate-panel/panel-struts.h')
-rw-r--r--mate-panel/panel-struts.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/mate-panel/panel-struts.h b/mate-panel/panel-struts.h
index e7d8185f..7897f532 100644
--- a/mate-panel/panel-struts.h
+++ b/mate-panel/panel-struts.h
@@ -23,6 +23,12 @@
#ifndef __PANEL_STRUTS_H__
#define __PANEL_STRUTS_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 <glib.h>
#include "panel-toplevel.h"