8307163: JLONG_FORMAT_SPECIFIER should be updated on Windows

Reviewed-by: stuefe
This commit is contained in:
Julian Waters 2023-05-14 13:57:42 +00:00
parent 3709344166
commit 0ee196bef1
2 changed files with 2 additions and 2 deletions

View File

@ -102,7 +102,7 @@ inline int g_isfinite(jfloat f) { return _finite(f); }
inline int g_isfinite(jdouble f) { return _finite(f); }
// Formatting.
#define FORMAT64_MODIFIER "I64"
#define FORMAT64_MODIFIER "ll"
#define offset_of(klass,field) offsetof(klass,field)

View File

@ -39,7 +39,7 @@
#define MAXPATHLEN MAX_PATH
#define MAXNAMELEN MAX_PATH
#define JLONG_FORMAT_SPECIFIER "%I64d"
#define JLONG_FORMAT_SPECIFIER "%lld"
/*
* Function prototypes.