Skip to content

Commit

Permalink
Allow compilation with old Mac OS versions + USE_X11 mode with which
Browse files Browse the repository at this point in the history
header X11/Xregion.h is not available.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10958 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
  • Loading branch information
Manolo Gouy authored and Manolo Gouy committed Dec 12, 2015
1 parent 5090e94 commit fe92bbe
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/Fl_Pixmap.cxx
Expand Up @@ -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>
Expand Down

0 comments on commit fe92bbe

Please sign in to comment.