Skip to content

Commit e3846eb

Browse files
wmwwlukefromdc
authored andcommitted
xstuff: Error if X11 not enabled
1 parent 58d9c36 commit e3846eb

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

mate-panel/xstuff.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,13 @@
1212
* Copyright (c) 1997-2002 Alfredo K. Kojima
1313
1414
*/
15+
1516
#include <config.h>
17+
18+
#ifndef HAVE_X11
19+
#error file should only be built when HAVE_X11 is enabled
20+
#endif
21+
1622
#include <string.h>
1723
#include <unistd.h>
1824

mate-panel/xstuff.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
11
#ifndef __XSTUFF_H__
22
#define __XSTUFF_H__
33

4+
#ifdef PACKAGE_NAME // only check HAVE_X11 if config.h has been included
5+
#ifndef HAVE_X11
6+
#error file should only be included when HAVE_X11 is enabled
7+
#endif
8+
#endif
9+
410
#include <gdk/gdk.h>
511
#include <gtk/gtk.h>
612

13+
#include "panel-enums-gsettings.h"
14+
715
void xstuff_zoom_animate (GtkWidget *widget,
816
cairo_surface_t *surface,
917
PanelOrientation orientation,

0 commit comments

Comments
 (0)