提交 fe79836e 编写于 作者: B bae

7002766: Java2d: Changes to correct c/c++ language issues for use of parfait

Reviewed-by: jgodinez, prr
上级 4115bd36
...@@ -162,10 +162,10 @@ typedef short INT16; ...@@ -162,10 +162,10 @@ typedef short INT16;
/* INT32 must hold at least signed 32-bit values. */ /* INT32 must hold at least signed 32-bit values. */
#ifndef XMD_H /* X11/xmd.h correctly defines INT32 */ #ifndef XMD_H /* X11/xmd.h correctly defines INT32 */
#ifndef _LP64 #if defined(_LP64) || defined(_WIN32) /* _WIN32 is on all windows platfroms (x86 and x64) */
typedef long INT32;
#else
typedef int INT32; typedef int INT32;
#else
typedef long INT32;
#endif #endif
#endif #endif
...@@ -221,11 +221,14 @@ typedef unsigned int JDIMENSION; ...@@ -221,11 +221,14 @@ typedef unsigned int JDIMENSION;
* explicit coding is needed; see uses of the NEED_FAR_POINTERS symbol. * explicit coding is needed; see uses of the NEED_FAR_POINTERS symbol.
*/ */
#ifndef FAR
#ifdef NEED_FAR_POINTERS #ifdef NEED_FAR_POINTERS
#define FAR far #define FAR far
#else #else
#define FAR #define FAR
#endif #endif
#endif
/* /*
......
...@@ -137,7 +137,7 @@ void errorHandler(cmsContext ContextID, cmsUInt32Number errorCode, ...@@ -137,7 +137,7 @@ void errorHandler(cmsContext ContextID, cmsUInt32Number errorCode,
JNU_ThrowByName(env, "java/awt/color/CMMException", errMsg); 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; javaVM = jvm;
cmsSetLogErrorHandler(errorHandler); cmsSetLogErrorHandler(errorHandler);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册