qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 2/3] w64: Add definition of FMT_pid


From: Andreas Färber
Subject: Re: [Qemu-devel] [PATCH 2/3] w64: Add definition of FMT_pid
Date: Fri, 15 Jul 2011 22:39:36 +0200

Am 15.07.2011 um 21:38 schrieb Stefan Weil:

For mingw-w64, pid_t is _pid_t which is __int64,
so this platform needs its own definition of FMT_pid.

Signed-off-by: Stefan Weil <address@hidden>

Ah, that's probably lld then and thus different from the existing definitions.

Reviewed-by: Andreas Färber <address@hidden>

Andreas

---
osdep.h |    2 ++
1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/osdep.h b/osdep.h
index a817017..252d050 100644
--- a/osdep.h
+++ b/osdep.h
@@ -130,6 +130,8 @@ int qemu_madvise(void *addr, size_t len, int advice);

#if defined(__HAIKU__) && defined(__i386__)
#define FMT_pid "%ld"
+#elif defined(WIN64)
+#define FMT_pid "%" PRId64
#else
#define FMT_pid "%d"
#endif
--
1.7.2.5




reply via email to

[Prev in Thread] Current Thread [Next in Thread]