Correct configure check for debug help API availability

The check added in 841af56084 was not good
enough, some MinGW versions do have imagehlp.h, but don't define all the API
functions we need in it. Luckily, we can check for this simply by verifying
that API_VERSION_NUMBER is big enough.

Closes #17451.
This commit is contained in:
Vadim Zeitlin
2016-03-21 01:07:35 +01:00
parent 0777bf6b92
commit 19819085f7
2 changed files with 6 additions and 0 deletions

3
configure vendored
View File

@@ -35939,6 +35939,9 @@ main ()
#ifndef API_VERSION_NUMBER
#error API_VERSION_NUMBER not defined!
#endif
#if API_VERSION_NUMBER < 9
#error API_VERSION_NUMBER at least 9 required.
#endif
;
return 0;

View File

@@ -7173,6 +7173,9 @@ if test "$USE_WIN32" = 1 ; then
#ifndef API_VERSION_NUMBER
#error API_VERSION_NUMBER not defined!
#endif
#if API_VERSION_NUMBER < 9
#error API_VERSION_NUMBER at least 9 required.
#endif
],
wx_cv_lib_debughlp=yes,
wx_cv_lib_debughlp=no