Mercurial > hg > truffle
changeset 6127:40b4aaf010e4
7172708: 32/64 bit type issues on Windows after Mac OS X port
Reviewed-by: dholmes, coleenp
Contributed-by: Chris Dennis <cdennis@terracottatech.com>
author | dholmes |
---|---|
date | Fri, 08 Jun 2012 02:06:16 -0400 |
parents | de909f001528 |
children | 0a8b8cb8b22c |
files | src/share/vm/utilities/globalDefinitions_visCPP.hpp |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/share/vm/utilities/globalDefinitions_visCPP.hpp Wed Jun 06 05:21:56 2012 +0200 +++ b/src/share/vm/utilities/globalDefinitions_visCPP.hpp Fri Jun 08 02:06:16 2012 -0400 @@ -220,9 +220,15 @@ #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)