summaryrefslogtreecommitdiff
path: root/mate-panel/panel-action-protocol.h
diff options
context:
space:
mode:
Diffstat (limited to 'mate-panel/panel-action-protocol.h')
-rw-r--r--mate-panel/panel-action-protocol.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/mate-panel/panel-action-protocol.h b/mate-panel/panel-action-protocol.h
index ceb7aaf3..3d27a124 100644
--- a/mate-panel/panel-action-protocol.h
+++ b/mate-panel/panel-action-protocol.h
@@ -25,6 +25,12 @@
#ifndef __PANEL_ACTION_PROTOCOL_H__
#define __PANEL_ACTION_PROTOCOL_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>
G_BEGIN_DECLS