GNOME Bugzilla – Bug 311633
gtkplug-win32.c: GetAncestor needs 'WINVER=0x0500'
Last modified: 2005-07-26 20:44:02 UTC
Please describe the problem: If WINVER is less than 0x0500, GetAncestor is not defined. It is written to be able to use GetAncestor on Windows 98 and Windows NT 4.0 SP4 in MSDN. But GetAncestor and GA_* macros need 'WINVER>=0x0500' in WinUser.h. If WINVER is 0x0500 or over, compatibility for Windows 98 may be lost. (WinUser.h is from Microsoft Platform SDK February 2003.) Steps to reproduce: 1. compile by Visual C++ 6.0 (WINVER is less than 0x0500) Actual results: following messages are displayed. gtkplug-win32.c(149) : error C4013: 'GetAncestor' undefined; assuming extern returning int gtkplug-win32.c(149) : error C2065: 'GA_PARENT' : undeclared identifier gtkplug-win32.c(149) : error C4047: 'initializing' : 'HWND' differs in levels of indirection from 'int' Expected results: Does this happen every time? Other information:
Added declaration of GetAncestor() and definition of GA_PARENT for MSVC6. Didn't add workaround for Win98. (Current cairo doesn't run on Win9x, anyway, AFAIK. If it is fixed to work on Win9x, will have to fix GTK+, too. But won't bother for now.)