diff src/cpu/x86/vm/jni_x86.h @ 513:2328d1d3f8cf

6781583: Hotspot build fails on linux 64 bit platform with gcc 4.3.2 Summary: Fixed the wrong cast between types since more restrictions are imposed by gcc 4.3.2 Reviewed-by: jcoomes, acorn, phh, never
author xlu
date Wed, 24 Dec 2008 19:13:53 -0800
parents a61af66fc99e
children 0fbdb4381b99
line wrap: on
line diff
--- a/src/cpu/x86/vm/jni_x86.h	Wed Dec 24 13:06:09 2008 -0800
+++ b/src/cpu/x86/vm/jni_x86.h	Wed Dec 24 19:13:53 2008 -0800
@@ -32,7 +32,13 @@
   #define JNICALL
 
   typedef int jint;
+
+#ifdef _LP64
+  typedef long jlong;
+#else
   typedef long long jlong;
+#endif
+
 #else
   #define JNIEXPORT __declspec(dllexport)
   #define JNIIMPORT __declspec(dllimport)