equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
70 } XRadialGradient; |
70 } XRadialGradient; |
71 #endif |
71 #endif |
72 |
72 |
73 #include <dlfcn.h> |
73 #include <dlfcn.h> |
74 |
74 |
75 #ifdef __solaris__ |
75 #if defined(__solaris__) || defined(_AIX) |
76 /* Solaris 10 will not have these symbols at runtime */ |
76 /* Solaris 10 and AIX will not have these symbols at runtime */ |
77 |
77 |
78 typedef Picture (*XRenderCreateLinearGradientFuncType) |
78 typedef Picture (*XRenderCreateLinearGradientFuncType) |
79 (Display *dpy, |
79 (Display *dpy, |
80 const XLinearGradient *gradient, |
80 const XLinearGradient *gradient, |
81 const XFixed *stops, |
81 const XFixed *stops, |
145 if (!XQueryExtension(awt_display, "RENDER", |
145 if (!XQueryExtension(awt_display, "RENDER", |
146 &major_opcode, &first_event, &first_error)) { |
146 &major_opcode, &first_event, &first_error)) { |
147 return JNI_FALSE; |
147 return JNI_FALSE; |
148 } |
148 } |
149 |
149 |
150 #ifdef __solaris__ |
150 #if defined(__solaris__) || defined(_AIX) |
151 xrenderlib = dlopen("libXrender.so",RTLD_GLOBAL|RTLD_LAZY); |
151 xrenderlib = dlopen("libXrender.so",RTLD_GLOBAL|RTLD_LAZY); |
152 if (xrenderlib != NULL) { |
152 if (xrenderlib != NULL) { |
153 |
153 |
154 XRenderCreateLinearGradientFunc = |
154 XRenderCreateLinearGradientFunc = |
155 (XRenderCreateLinearGradientFuncType) |
155 (XRenderCreateLinearGradientFuncType) |