xserver-multidpi/hw/xwin/glx
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
..
.gitignore hw/xwin/glx: Update .gitignore 2014-08-29 13:49:08 +01:00
gen_gl_wrappers.py hw/xwin/glx: Improve code generator to deal with latest Khronos OpenGL registry XML 2015-03-16 16:35:19 +00:00
glshim.c hw/xwin: Fix warnings in glx/glshim.c 2014-10-09 16:31:25 +01:00
glthunk.c hw/xwin/glx: Rewrite WGL wrappers after Xserver conversion to direct GL dispatch 2013-12-10 17:00:06 +00:00
glwindows.h hw/xwin: Add an idempotency guard to glwindows.h 2014-08-29 13:40:26 +01:00
indirect.c hw/xwin: printf format fixes for DWORD type 2015-07-07 16:52:44 +01:00
Makefile.am hw/xwin/glx: Rewrite WGL wrappers after Xserver conversion to direct GL dispatch 2013-12-10 17:00:06 +00:00
wgl_ext_api.c hw/xwin/glx: Don't spam log with wglwrap symbol resolution status at startup 2011-07-07 18:00:34 +01:00
wgl_ext_api.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
winpriv.c hw/xwin: printf format fixes for XID type 2015-07-07 16:52:26 +01:00
winpriv.h Cygwin/X: AIGLX using native WGL 2010-04-28 14:26:52 +01:00