After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 311633 - gtkplug-win32.c: GetAncestor needs 'WINVER=0x0500'
gtkplug-win32.c: GetAncestor needs 'WINVER=0x0500'
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Backend: Win32
2.7.x
Other All
: Normal minor
: ---
Assigned To: gtk-win32 maintainers
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2005-07-26 17:46 UTC by Kazuki Iwamoto
Modified: 2005-07-26 20:44 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Kazuki Iwamoto 2005-07-26 17:46:57 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:
Comment 1 Tor Lillqvist 2005-07-26 20:44:02 UTC
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.)