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
This commit is contained in:
Manolo Gouy
2015-12-12 15:33:56 +00:00
parent 5090e949fa
commit fe92bbed66
+13 -1
View File
@@ -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>