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>
This commit is contained in:
parent
3feaca9e88
commit
0e0167bacc
2
osdep.h
2
osdep.h
@ -130,6 +130,8 @@ int qemu_madvise(void *addr, size_t len, int advice);
|
|||||||
|
|
||||||
#if defined(__HAIKU__) && defined(__i386__)
|
#if defined(__HAIKU__) && defined(__i386__)
|
||||||
#define FMT_pid "%ld"
|
#define FMT_pid "%ld"
|
||||||
|
#elif defined(WIN64)
|
||||||
|
#define FMT_pid "%" PRId64
|
||||||
#else
|
#else
|
||||||
#define FMT_pid "%d"
|
#define FMT_pid "%d"
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user