aboutsummaryrefslogtreecommitdiff
path: root/osdep.h
diff options
context:
space:
mode:
authorStefan Weil <weil@mail.berlios.de>2011-07-15 21:38:13 +0200
committerBlue Swirl <blauwirbel@gmail.com>2011-08-21 15:33:22 +0000
commit0e0167bacc405f9ba5b056d7d41264ccd0b000ca (patch)
tree7f0360f827314b1dee98f58a8893c5dcdb40afd0 /osdep.h
parent3feaca9e88ddc72b3a9d7388fd542d1c0a5c24fb (diff)
w64: Add definition of FMT_pid
For mingw-w64, pid_t is _pid_t which is __int64, so this platform needs its own definition of FMT_pid. Reviewed-by: Andreas Färber <andreas.faerber@web.de> Signed-off-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'osdep.h')
-rw-r--r--osdep.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/osdep.h b/osdep.h
index a81701749a..252d050e62 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