mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-25 22:04:51 +02:00
7172708: 32/64 bit type issues on Windows after Mac OS X port
Reviewed-by: dholmes, coleenp
This commit is contained in:
parent
bd06ea72a9
commit
27c2e51e67
1 changed files with 6 additions and 0 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue