comparison src/share/vm/utilities/globalDefinitions_visCPP.hpp @ 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 520830f632e7
children b9a9ed0f8eeb
comparison
equal deleted inserted replaced
6126:de909f001528 6127:40b4aaf010e4
218 218
219 #define PRId64 "I64d" 219 #define PRId64 "I64d"
220 #define PRIu64 "I64u" 220 #define PRIu64 "I64u"
221 #define PRIx64 "I64x" 221 #define PRIx64 "I64x"
222 222
223 #ifdef _LP64
224 #define PRIdPTR "I64d"
225 #define PRIuPTR "I64u"
226 #define PRIxPTR "I64x"
227 #else
223 #define PRIdPTR "d" 228 #define PRIdPTR "d"
224 #define PRIuPTR "u" 229 #define PRIuPTR "u"
225 #define PRIxPTR "x" 230 #define PRIxPTR "x"
231 #endif
226 232
227 #define offset_of(klass,field) offsetof(klass,field) 233 #define offset_of(klass,field) offsetof(klass,field)
228 234
229 #endif // SHARE_VM_UTILITIES_GLOBALDEFINITIONS_VISCPP_HPP 235 #endif // SHARE_VM_UTILITIES_GLOBALDEFINITIONS_VISCPP_HPP