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 333879 - gthread/gthread-win32.c: IsDebuggerPresent needs '#define _WIN32_WINDOWS 0x0401'
gthread/gthread-win32.c: IsDebuggerPresent needs '#define _WIN32_WINDOWS 0x0401'
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: win32
2.10.x
Other All
: Normal normal
: ---
Assigned To: gtk-win32 maintainers
gtk-win32 maintainers
Depends on:
Blocks:
 
 
Reported: 2006-03-08 12:13 UTC by Kazuki Iwamoto
Modified: 2006-03-11 20:43 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Kazuki Iwamoto 2006-03-08 12:13:42 UTC
Please describe the problem:
_WIN32_WINDOWS should be defined before '#include <windows.h>', because using
IsDebuggerPresent.
Please see glib/gbacktrace.c and glib/gmessages.c.

Steps to reproduce:
1. compile gthread/gthread-win32.c

Actual results:
following message is displayed. (Visual C++ 6.0)
gthread-win32.c(332) : error C4013: 'IsDebuggerPresent' undefined; assuming
extern returning int

Expected results:
add '#define _WIN32_WINDOWS 0x0401'.

Does this happen every time?


Other information:
Comment 1 Tor Lillqvist 2006-03-11 20:43:51 UTC
Thanks, applied.