diff options
author | Stefan Weil <weil@mail.berlios.de> | 2011-07-15 21:38:13 +0200 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2011-08-21 15:33:22 +0000 |
commit | 0e0167bacc405f9ba5b056d7d41264ccd0b000ca (patch) | |
tree | 7f0360f827314b1dee98f58a8893c5dcdb40afd0 /osdep.h | |
parent | 3feaca9e88ddc72b3a9d7388fd542d1c0a5c24fb (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.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |