src/solaris/native/sun/java2d/x11/XRBackendNative.c

Print this page
rev 8822 : 8024854: PPC64: Basic changes and files to build the class library on AIX
Reviewed-by: alanb, prr, sla, chegar, michaelm, mullan, art
Contributed-by: luchsh@linux.vnet.ibm.com, spoole@linux.vnet.ibm.com, thomas.stuefe@sap.com

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