configure now defines _WIN_IE if w32api is at least 1.1 (1.0 is not complete enough for wxWin)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11669 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2001-09-22 16:17:09 +00:00
parent 38189fd599
commit c981cbe951
2 changed files with 364 additions and 300 deletions

643
configure vendored

File diff suppressed because it is too large Load Diff

View File

@@ -2415,6 +2415,27 @@ fi
if test "$USE_WIN32" = 1; then
AC_CHECK_HEADERS(w32api.h)
dnl check if can use _WIN_IE macro
AC_CACHE_CHECK([if w32api has good enough MSIE support], wx_cv_w32api_win_ie,
[
AC_TRY_COMPILE([#include <w32api.h>],
[
#define wxCHECK_W32API_VERSION( major, minor ) \
( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
&& ( ( __W32API_MAJOR_VERSION > (major) ) \
|| ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
#if !wxCHECK_W32API_VERSION(1,1)
#error You need w32api 1.1 or newer
#endif
], [
wx_cv_w32api_win_ie=yes
CPPFLAGS="$CPPFLAGS -D_WIN_IE=0x400"
], [
wx_cv_w32api_win_ie=no
])
])
fi
dnl ---------------------------------------------------------------------------