diff options
| author | Manolo Gouy <Manolo> | 2015-12-12 15:33:56 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2015-12-12 15:33:56 +0000 |
| commit | fe92bbed66e8cffeb5e1d329284693763029a829 (patch) | |
| tree | ff6bddb413bedc8ee0a93369df80758f45b1c0b4 /src | |
| parent | 5090e949faaee58424b360d9b9687ea29123c9fa (diff) | |
Allow compilation with old Mac OS versions + USE_X11 mode with which
header X11/Xregion.h is not available.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10958 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_Pixmap.cxx | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/Fl_Pixmap.cxx b/src/Fl_Pixmap.cxx index a5b9fc5e4..e32d90209 100644 --- a/src/Fl_Pixmap.cxx +++ b/src/Fl_Pixmap.cxx @@ -42,7 +42,19 @@ #include <FL/Fl_Printer.H> #if defined(USE_X11) -#include <X11/Xregion.h> +# ifdef __APPLE_CC__ // allows using on Darwin + X11 even if X11/Xregion.h is absent +typedef struct { + short x1, x2, y1, y2; +} BOX; +struct _XRegion { + long size; + long numRects; + BOX *rects; + BOX extents; +}; +# else +# include <X11/Xregion.h> +# endif #endif #include <stdio.h> |
