Ticket #21500: patch-openjdk-hotspot-src-share-vm-utilities-globalDefinitions.hpp.diff

File patch-openjdk-hotspot-src-share-vm-utilities-globalDefinitions.hpp.diff, 960 bytes (added by mvfranz@…, 15 years ago)
  • openjdk/hotspot/src/share/vm/utilities/globalDefinitions.hpp

    old new  
    11051105// Format 32-bit quantities.
    11061106#define INT32_FORMAT  "%d"
    11071107#define UINT32_FORMAT "%u"
     1108#define LONG_FORMAT "%ld"
     1109#define ULONG_FORMAT "%lu"
    11081110#define INT32_FORMAT_W(width)   "%" #width "d"
    11091111#define UINT32_FORMAT_W(width)  "%" #width "u"
    11101112
     
    11461148#define SIZE_FORMAT   UINT64_FORMAT
    11471149#define SSIZE_FORMAT  INT64_FORMAT
    11481150#else   // !_LP64
     1151#ifdef __APPLE__
     1152#define PTR_FORMAT    LONG_FORMAT
     1153#define UINTX_FORMAT  ULONG_FORMAT
     1154#define INTX_FORMAT   LONG_FORMAT
     1155#define SIZE_FORMAT   LONG_FORMAT
     1156#else
    11491157#define PTR_FORMAT    PTR32_FORMAT
    11501158#define UINTX_FORMAT  UINT32_FORMAT
    11511159#define INTX_FORMAT   INT32_FORMAT
    11521160#define SIZE_FORMAT   UINT32_FORMAT
     1161#endif
    11531162#define SSIZE_FORMAT  INT32_FORMAT
    11541163#endif  // _LP64
    11551164