Skip to content

Commit

Permalink
xstuff: Error if X11 not enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
wmww authored and lukefromdc committed Jan 29, 2019
1 parent 58d9c36 commit e3846eb
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mate-panel/xstuff.c
Expand Up @@ -12,7 +12,13 @@
* Copyright (c) 1997-2002 Alfredo K. Kojima
*/

#include <config.h>

#ifndef HAVE_X11
#error file should only be built when HAVE_X11 is enabled
#endif

#include <string.h>
#include <unistd.h>

Expand Down
8 changes: 8 additions & 0 deletions mate-panel/xstuff.h
@@ -1,9 +1,17 @@
#ifndef __XSTUFF_H__
#define __XSTUFF_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>
#include <gtk/gtk.h>

#include "panel-enums-gsettings.h"

void xstuff_zoom_animate (GtkWidget *widget,
cairo_surface_t *surface,
PanelOrientation orientation,
Expand Down

0 comments on commit e3846eb

Please sign in to comment.