mirror of
https://github.com/fltk/fltk.git
synced 2026-06-05 16:12:13 +08:00
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:
+13
-1
@@ -42,7 +42,19 @@
|
|||||||
#include <FL/Fl_Printer.H>
|
#include <FL/Fl_Printer.H>
|
||||||
|
|
||||||
#if defined(USE_X11)
|
#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
|
#endif
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|||||||
Reference in New Issue
Block a user