Skip to content
Permalink
Browse files

xstuff: Error if X11 not enabled

  • Loading branch information...
wmww authored and lukefromdc committed Jan 26, 2019
1 parent 58d9c36 commit e3846eb096a7ded4566775bcca0a3e3ceb22f762
Showing with 14 additions and 0 deletions.
  1. +6 −0 mate-panel/xstuff.c
  2. +8 −0 mate-panel/xstuff.h
@@ -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>

@@ -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,

0 comments on commit e3846eb

Please sign in to comment.
You can’t perform that action at this time.