mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-25 22:04:51 +02:00
7089790: integrate bsd-port changes
Co-authored-by: Greg Lewis <glewis@eyesbeyond.com> Co-authored-by: Jung-uk Kim <jkim@freebsd.org> Co-authored-by: Christos Zoulas <christos@zoulas.com> Co-authored-by: Landon Fuller <landonf@plausible.coop> Co-authored-by: The FreeBSD Foundation <board@freebsdfoundation.org> Co-authored-by: Michael Franz <mvfranz@gmail.com> Co-authored-by: Roger Hoover <rhoover@apple.com> Co-authored-by: Alexander Strange <astrange@apple.com> Reviewed-by: kvn, twisti, jrose
This commit is contained in:
parent
52f0eccb24
commit
95c56a472b
291 changed files with 26162 additions and 145 deletions
|
@ -207,6 +207,20 @@ inline int vsnprintf(char* buf, size_t count, const char* fmt, va_list argptr) {
|
|||
// Formatting.
|
||||
#define FORMAT64_MODIFIER "I64"
|
||||
|
||||
// Visual Studio doesn't provide inttypes.h so provide appropriate definitions here.
|
||||
// The 32 bits ones might need I32 but seem to work ok without it.
|
||||
#define PRId32 "d"
|
||||
#define PRIu32 "u"
|
||||
#define PRIx32 "x"
|
||||
|
||||
#define PRId64 "I64d"
|
||||
#define PRIu64 "I64u"
|
||||
#define PRIx64 "I64x"
|
||||
|
||||
#define PRIdPTR "d"
|
||||
#define PRIuPTR "u"
|
||||
#define PRIxPTR "x"
|
||||
|
||||
#define offset_of(klass,field) offsetof(klass,field)
|
||||
|
||||
#endif // SHARE_VM_UTILITIES_GLOBALDEFINITIONS_VISCPP_HPP
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue