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:
@@ -1598,6 +1598,15 @@ if test "$wxUSE_GUI" = "yes"; then
|
||||
])
|
||||
|
||||
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"
|
||||
|
Reference in New Issue
Block a user