xserver/hw/xwin/winclipboard
Jon TURNEY aa83c61f51 hw/xwin: printf format fixes for DWORD type
Some Win32 API types are different fundamental types in the 32-bit and 64-bit
versions.

This problem is then further compounded by the fact that whilst both 32-bit
Cygwin and 32-bit MinGW use the ILP32 data model, 64-bit MinGW uses the LLP64
data model, but 64-bit Cygwin uses the LP64 data model.

This makes it impossible to write printf format specifiers which are correct for
all those targets

In the Win32 API, DWORD is an unsigned, 32-bit type.  It is defined in terms of
an unsigned long, except in the LP64 data model, where it is an unsigned int.

It should always be safe to cast it to unsigned int and use %u or %x.

Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Reviewed-by: Colin Harrison <colin.harrison@virgin.net>
2015-07-07 16:52:44 +01:00
..
Makefile.am hw/xwin/winclipboard: Link xwinclip with -lpthread 2015-04-22 12:55:25 +01:00
debug.c hw/xwin: Add xwinclip test client 2014-09-13 14:18:38 +01:00
internal.h hw/xwin: Ensure format warnings in winclipboard/ 2015-07-07 16:52:20 +01:00
textconv.c hw/xwin: Undefine _XSERVER64 in hw/xwin/winclipboard 2014-09-13 14:19:06 +01:00
thread.c hw/xwin: Fix clipboard thread restart 2014-11-09 14:22:51 +00:00
winclipboard.h hw/xwin: Add controls for enabling/disabling monitoring of PRIMARY selection 2014-11-09 14:22:35 +00:00
wndproc.c hw/xwin: printf format fix in winProcessXEventsTimeout() 2015-07-07 16:52:38 +01:00
xevents.c hw/xwin: printf format fixes for DWORD type 2015-07-07 16:52:44 +01:00
xwinclip.c hw/xwin: Add controls for enabling/disabling monitoring of PRIMARY selection 2014-11-09 14:22:35 +00:00
xwinclip.man hw/xwin: Add controls for enabling/disabling monitoring of PRIMARY selection 2014-11-09 14:22:35 +00:00