equal
deleted
inserted
replaced
29 #include "Region.h" |
29 #include "Region.h" |
30 #include "fontscalerdefs.h" |
30 #include "fontscalerdefs.h" |
31 |
31 |
32 #include <X11/extensions/Xrender.h> |
32 #include <X11/extensions/Xrender.h> |
33 |
33 |
|
34 /* On Solaris 10 updates 8, 9, the render.h file defines these |
|
35 * protocol values but does not define the structs in Xrender.h. |
|
36 * Thus in order to get these always defined on Solaris 10 |
|
37 * we will undefine the symbols if we have determined via the |
|
38 * makefiles that Xrender.h is lacking the structs. This will |
|
39 * trigger providing our own definitions as on earlier updates. |
|
40 * We could assume that *all* Solaris 10 update versions will lack the updated |
|
41 * Xrender.h and do this based solely on O/S being any 5.10 version, but this |
|
42 * could still change and we'd be broken again as we'd be re-defining them. |
|
43 */ |
|
44 #ifdef SOLARIS10_NO_XRENDER_STRUCTS |
|
45 #undef X_RenderCreateLinearGradient |
|
46 #undef X_RenderCreateRadialGradient |
|
47 #endif |
|
48 |
34 #ifndef X_RenderCreateLinearGradient |
49 #ifndef X_RenderCreateLinearGradient |
35 typedef struct _XLinearGradient { |
50 typedef struct _XLinearGradient { |
36 XPointFixed p1; |
51 XPointFixed p1; |
37 XPointFixed p2; |
52 XPointFixed p2; |
38 } XLinearGradient; |
53 } XLinearGradient; |