summaryrefslogtreecommitdiff
path: root/mate-panel/panel-force-quit.h
diff options
context:
space:
mode:
authorWilliam Wold <[email protected]>2019-01-26 05:33:08 -0500
committerlukefromdc <[email protected]>2019-01-29 19:09:05 +0000
commit4fe2b74e7bb8e578d68a2e6966ba096a96908ebf (patch)
treeaa4b3ff0537761807e02fac1572fd261ae9c28ff /mate-panel/panel-force-quit.h
parentdb9a60cb179c7d34931609db20763d79dd58ad8e (diff)
downloadmate-panel-4fe2b74e7bb8e578d68a2e6966ba096a96908ebf.tar.bz2
mate-panel-4fe2b74e7bb8e578d68a2e6966ba096a96908ebf.tar.xz
panel-force-quit: Error if used when X11 is disabled
Diffstat (limited to 'mate-panel/panel-force-quit.h')
-rw-r--r--mate-panel/panel-force-quit.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/mate-panel/panel-force-quit.h b/mate-panel/panel-force-quit.h
index 77c1c3cc..4f7d5851 100644
--- a/mate-panel/panel-force-quit.h
+++ b/mate-panel/panel-force-quit.h
@@ -25,6 +25,12 @@
#ifndef __PANEL_FORCE_QUIT_H__
#define __PANEL_FORCE_QUIT_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 <gdk/gdk.h>
#ifdef __cplusplus