diff options
author | William Wold <[email protected]> | 2019-01-26 05:29:57 -0500 |
---|---|---|
committer | lukefromdc <[email protected]> | 2019-01-29 19:09:05 +0000 |
commit | db9a60cb179c7d34931609db20763d79dd58ad8e (patch) | |
tree | 0a0c9eabac8c9b46cc1356c561adee796bccf9e5 /mate-panel/panel-xutils.h | |
parent | 00e26f7f8397704b77751ad63d7534575f2f10f0 (diff) | |
download | mate-panel-db9a60cb179c7d34931609db20763d79dd58ad8e.tar.bz2 mate-panel-db9a60cb179c7d34931609db20763d79dd58ad8e.tar.xz |
panel-xutils: Error if used when X11 is disabled
Diffstat (limited to 'mate-panel/panel-xutils.h')
-rw-r--r-- | mate-panel/panel-xutils.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mate-panel/panel-xutils.h b/mate-panel/panel-xutils.h index 8228196c..4cba602e 100644 --- a/mate-panel/panel-xutils.h +++ b/mate-panel/panel-xutils.h @@ -25,6 +25,12 @@ #ifndef __PANEL_XUTILS_H__ #define __PANEL_XUTILS_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 <gdk/gdk.h> #include <gdk/gdkx.h> |