From c34255f8b9882bedd943634ef184bab850db7da0 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Mon, 12 Sep 2016 15:48:09 +0000 Subject: Remove code requiring config.h from public header FL/x.H git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11937 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/drivers/Xlib/Fl_Xlib_Graphics_Driver.H | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/drivers') diff --git a/src/drivers/Xlib/Fl_Xlib_Graphics_Driver.H b/src/drivers/Xlib/Fl_Xlib_Graphics_Driver.H index 26f5ff2b9..eda367e61 100644 --- a/src/drivers/Xlib/Fl_Xlib_Graphics_Driver.H +++ b/src/drivers/Xlib/Fl_Xlib_Graphics_Driver.H @@ -25,9 +25,24 @@ #ifndef FL_CFG_GFX_XLIB_H #define FL_CFG_GFX_XLIB_H +#include #include #include +#if HAVE_X11_XREGION_H +# include +#else // if the X11/Xregion.h header is not available, we assume this is the layout of an X11 Region: +typedef struct { + short x1, x2, y1, y2; +} BOX; +struct _XRegion { + long size; + long numRects; + BOX *rects; + BOX extents; +}; +#endif // HAVE_X11_XREGION_H + /** \brief The Xlib-specific graphics class. * -- cgit v1.2.3