]> git.ipfire.org Git - thirdparty/dbus.git/commit
Use C99 standard PRI*64 for printing 64 bit integers
authorNatanael Copa <ncopa@alpinelinux.org>
Fri, 18 Sep 2015 13:27:50 +0000 (15:27 +0200)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Wed, 30 Sep 2015 17:36:23 +0000 (18:36 +0100)
commite9a3dd76576142b78dd1abc8aafb7221dbc40918
treef8cac0b205935f0d12faee8981aab5dde90b961c
parent8b7f332bca062899c3d82e5ad18a31cf26fcbb7c
Use C99 standard PRI*64 for printing 64 bit integers

Use the standard C99 PRI*64 macros instead of checking for specific GNU
libc version. We also specifically check for windows which does not have
proper C99 support.

This fixes printing of int64 on non-GNU 32 bit systems (like musl libc).

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=92043
Reviewed-by: Thiago Macieira <thiago@kde.org>
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
[smcv: fix extra % in the Windows fallbacks; include <inttypes.h> where needed]
configure.ac
dbus/dbus-marshal-basic.c
dbus/dbus-marshal-recursive-util.c
tools/dbus-print-message.c