diff --git a/src/share/native/sun/awt/image/jpeg/jmorecfg.h b/src/share/native/sun/awt/image/jpeg/jmorecfg.h index 95e5f33c3949acc2cfcbf52adce7bdd336f1380b..be20d886c00c2a15ee9f0ea839b80ac105a6c3be 100644 --- a/src/share/native/sun/awt/image/jpeg/jmorecfg.h +++ b/src/share/native/sun/awt/image/jpeg/jmorecfg.h @@ -161,11 +161,11 @@ typedef short INT16; /* INT32 must hold at least signed 32-bit values. */ -#ifndef XMD_H /* X11/xmd.h correctly defines INT32 */ -#ifndef _LP64 -typedef long INT32; -#else +#ifndef XMD_H /* X11/xmd.h correctly defines INT32 */ +#if defined(_LP64) || defined(_WIN32) /* _WIN32 is on all windows platfroms (x86 and x64) */ typedef int INT32; +#else +typedef long INT32; #endif #endif @@ -221,11 +221,14 @@ typedef unsigned int JDIMENSION; * explicit coding is needed; see uses of the NEED_FAR_POINTERS symbol. */ + +#ifndef FAR #ifdef NEED_FAR_POINTERS #define FAR far #else #define FAR #endif +#endif /* diff --git a/src/share/native/sun/java2d/cmm/lcms/LCMS.c b/src/share/native/sun/java2d/cmm/lcms/LCMS.c index 7493c837cb83e1a2e578c8c1badb2d40e5aa71f8..bd2c03c1ac6993ce49ed854203fb7469784e5f7e 100644 --- a/src/share/native/sun/java2d/cmm/lcms/LCMS.c +++ b/src/share/native/sun/java2d/cmm/lcms/LCMS.c @@ -137,7 +137,7 @@ void errorHandler(cmsContext ContextID, cmsUInt32Number errorCode, JNU_ThrowByName(env, "java/awt/color/CMMException", errMsg); } -JNIEXPORT int JNICALL JNI_OnLoad(JavaVM *jvm, void *reserved) { +JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM *jvm, void *reserved) { javaVM = jvm; cmsSetLogErrorHandler(errorHandler);