From 1ba7e5f1d8abde50b704aece4307bcbe9fa216d4 Mon Sep 17 00:00:00 2001 From: dholmes Date: Fri, 8 Jun 2012 02:06:16 -0400 Subject: [PATCH] 7172708: 32/64 bit type issues on Windows after Mac OS X port Reviewed-by: dholmes, coleenp Contributed-by: Chris Dennis --- src/share/vm/utilities/globalDefinitions_visCPP.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/share/vm/utilities/globalDefinitions_visCPP.hpp b/src/share/vm/utilities/globalDefinitions_visCPP.hpp index 60ebb118e..22e99cb3d 100644 --- a/src/share/vm/utilities/globalDefinitions_visCPP.hpp +++ b/src/share/vm/utilities/globalDefinitions_visCPP.hpp @@ -220,9 +220,15 @@ inline int vsnprintf(char* buf, size_t count, const char* fmt, va_list argptr) { #define PRIu64 "I64u" #define PRIx64 "I64x" +#ifdef _LP64 +#define PRIdPTR "I64d" +#define PRIuPTR "I64u" +#define PRIxPTR "I64x" +#else #define PRIdPTR "d" #define PRIuPTR "u" #define PRIxPTR "x" +#endif #define offset_of(klass,field) offsetof(klass,field) -- GitLab