[ros-dev] header hack.... eeh workaround ;)
timo.kreuzer at web.de
Tue Mar 17 23:50:01 CET 2009
I's like to suggest a workaround to the problem that we have to deal
with both RECT and RECTL structures in win32k and as they
are incompatible need to typecast in a lot of places.
RECTL is what the DDI interface uses (almost) exclusively. While the
NtGdi Interface and a lot of User structures also use RECT.
Both structures are equal, but not compatible when it comes to assigning
one to another, So we need to do all these nasty typecasts.
My suggestion is adding some defines after the inclusion of windef.h:
#define RECT RECTL
#define PRECT PRECTL
#define LPRECT LPRECTL
#define LPCRECT LPCRECTL
same for POINT and POINTL
I'd like to hear your opinion on that.
More information about the Ros-dev