SDL Win95 patch

Who still cares about win95? I do, 'cause I’ve got friends still using 95
that help me test my programs! And if we can make it work, well, why not?

Problem being, SDL_dx5events.c uses GetAncestor, which is a 98 function,
resulting in the annoying error
"The SDL.DLL file is linked to missing export user32.dll:GetAncestor".

Fortunately not all the functionality of GetAncestor is needed, just the
GA_ROOT option, for which I found code on usenet to emulate. The attached
patch gives it it’s own GetTopLevelParent function and replaces calls to
GetAncestor with it, and when compiled in VC6(yes, with DirectX enabled in
the build) runs great under Windows 95 and above. (As great as 95 ever runs,
anyway.)
-------------- next part --------------
A non-text attachment was scrubbed…
Name: SDL_dx5events.patch
Type: text/x-diff
Size: 722 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20050617/dbce6825/attachment.patch

Who still cares about win95? I do, 'cause I’ve got friends still using 95
that help me test my programs! And if we can make it work, well, why not?

This patch is in CVS now. Thanks!

–ryan.