GNOME Bugzilla – Bug 333879
gthread/gthread-win32.c: IsDebuggerPresent needs '#define _WIN32_WINDOWS 0x0401'
Last modified: 2006-03-11 20:43:51 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:
Thanks, applied.