# HG changeset patch # User lucy # Date 1558703559 -7200 # Node ID dbaeccde2d79f49ee2f35349283b6dbed182d4b5 # Parent adb2493b120e88791d242694ac5042675eaab7d2 8224742: JLONG_FORMAT_W incompatible with type jlong Reviewed-by: thartmann, clanger diff --git a/src/hotspot/share/utilities/globalDefinitions_gcc.hpp b/src/hotspot/share/utilities/globalDefinitions_gcc.hpp --- a/src/hotspot/share/utilities/globalDefinitions_gcc.hpp +++ b/src/hotspot/share/utilities/globalDefinitions_gcc.hpp @@ -250,7 +250,8 @@ #define offsetof(klass,field) offset_of(klass,field) #if defined(_LP64) && defined(__APPLE__) -#define JLONG_FORMAT "%ld" +#define JLONG_FORMAT "%ld" +#define JLONG_FORMAT_W(width) "%" #width "ld" #endif // _LP64 && __APPLE__ #ifndef USE_LIBRARY_BASED_TLS_ONLY