--- old/src/share/vm/utilities/globalDefinitions_visCPP.hpp Wed Sep 21 11:40:38 2011 +++ new/src/share/vm/utilities/globalDefinitions_visCPP.hpp Wed Sep 21 11:40:38 2011 @@ -207,6 +207,20 @@ // Formatting. #define FORMAT64_MODIFIER "I64" +// Visual Studio doesn't provide inttypes.h so provide appropriate definitions here. +// The 32 bits ones might need I32 but seem to work ok without it. +#define PRId32 "d" +#define PRIu32 "u" +#define PRIx32 "x" + +#define PRId64 "I64d" +#define PRIu64 "I64u" +#define PRIx64 "I64x" + +#define PRIdPTR "d" +#define PRIuPTR "u" +#define PRIxPTR "x" + #define offset_of(klass,field) offsetof(klass,field) #endif // SHARE_VM_UTILITIES_GLOBALDEFINITIONS_VISCPP_HPP