From c733d206b9e389b0ff1945f0ace496b9d3ad4a10 Mon Sep 17 00:00:00 2001 From: William Wold Date: Sat, 26 Jan 2019 05:51:51 -0500 Subject: panel-action-protocol: Error if used when X11 is disabled --- mate-panel/panel-action-protocol.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'mate-panel/panel-action-protocol.h') 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 G_BEGIN_DECLS -- cgit v1.2.1