From 19819085f7ea5127496ca30e7f0d6a637bcf7189 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 21 Mar 2016 01:07:35 +0100 Subject: [PATCH] Correct configure check for debug help API availability The check added in 841af5608407ab76ba20049b3c541c797766507c 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. --- configure | 3 +++ configure.in | 3 +++ 2 files changed, 6 insertions(+) diff --git a/configure b/configure index 0b45fb4c8f..b95a27e6ee 100755 --- a/configure +++ b/configure @@ -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; diff --git a/configure.in b/configure.in index 3b30d65837..e9884abe40 100644 --- a/configure.in +++ b/configure.in @@ -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