define WINVER for mingw32 cross compilation

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11122 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2001-07-20 11:58:54 +00:00
parent ff3d11a0ab
commit 3f0f016135
2 changed files with 424 additions and 412 deletions

817
configure vendored

File diff suppressed because it is too large Load Diff

View File

@@ -1592,12 +1592,21 @@ if test "$wxUSE_GUI" = "yes"; then
WXWINE=
if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
AC_CHECK_HEADER(windows.h, [],
[
AC_MSG_ERROR(please set CFLAGS to contain the location of windows.h)
])
AC_CHECK_HEADER(windows.h, [],
[
AC_MSG_ERROR(please set CFLAGS to contain the location of windows.h)
])
INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw"
dnl VZ: my mingw32 doesn't define WINVER which means that __WIN95__ is
dnl not defined in wx/defs.h and all kinds of things break so I
dnl add it here
dnl
dnl if newer versions of mingw32 do define it, we should
dnl explicitly test for this
CXXFLAGS="${CXXFLAGS} -DWINVER=0x0400"
dnl --- Quick & Dirty ; link against most/all libraries
dnl --- This will bloat the executable, but it'll work for now...
LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"