From b3dfbbc91088ab32c3aae4294a3c726fadfc5ccd Mon Sep 17 00:00:00 2001 From: Mattia Barbon Date: Tue, 1 Jul 2003 20:02:59 +0000 Subject: [PATCH 1/1] MinGW compilation fixes. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21563 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- configure | 4 ++-- configure.in | 4 ++-- include/wx/msw/chkconf.h | 9 +++++++++ src/common/appcmn.cpp | 2 ++ src/msw/main.cpp | 1 + src/unix/baseunix.cpp | 1 + 6 files changed, 17 insertions(+), 4 deletions(-) diff --git a/configure b/configure index 48b370c4e9..0541017e34 100755 --- a/configure +++ b/configure @@ -19371,7 +19371,7 @@ echo "${ECHO_T}$wx_cv_w32api_win32_ie" >&6 CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400" fi - LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32" + LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32" if test "$wxUSE_ACCESSIBILITY" = "yes" ; then LIBS="$LIBS -loleacc" @@ -19379,7 +19379,7 @@ echo "${ECHO_T}$wx_cv_w32api_win32_ie" >&6 case "${host}" in *-*-cygwin* ) - LIBS="$LIBS -lkernel32 -luser32 -lcomdlg32" + LIBS="$LIBS -lkernel32 -luser32" TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__" esac diff --git a/configure.in b/configure.in index 1f615fe1b4..76b1a6ee3a 100644 --- a/configure.in +++ b/configure.in @@ -2102,7 +2102,7 @@ if test "$USE_WIN32" = 1 ; then dnl --- FIXME: This is still a somewhat random list of libs, dnl --- some of them should probably be included conditionally. - LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32" + LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32" if test "$wxUSE_ACCESSIBILITY" = "yes" ; then LIBS="$LIBS -loleacc" @@ -2111,7 +2111,7 @@ if test "$USE_WIN32" = 1 ; then case "${host}" in *-*-cygwin* ) dnl Cygwin doesn't include these by default - LIBS="$LIBS -lkernel32 -luser32 -lcomdlg32" + LIBS="$LIBS -lkernel32 -luser32" TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__" esac diff --git a/include/wx/msw/chkconf.h b/include/wx/msw/chkconf.h index 5f31c7f6f4..badd90155d 100644 --- a/include/wx/msw/chkconf.h +++ b/include/wx/msw/chkconf.h @@ -24,6 +24,15 @@ #endif #endif +/* + * GCC does not have SEH (__try/__catch) + */ + +#if defined(__GNUG__) + #undef wxUSE_ON_FATAL_EXCEPTION + #define wxUSE_ON_FATAL_EXCEPTION 0 +#endif + /* * wxUSE_DEBUG_NEW_ALWAYS doesn't work with CodeWarrior */ diff --git a/src/common/appcmn.cpp b/src/common/appcmn.cpp index 598204ad13..6898c219b9 100644 --- a/src/common/appcmn.cpp +++ b/src/common/appcmn.cpp @@ -35,6 +35,8 @@ #include "wx/list.h" #include "wx/log.h" #include "wx/msgdlg.h" + #include "wx/bitmap.h" + #include "wx/confbase.h" #endif #include "wx/apptrait.h" diff --git a/src/msw/main.cpp b/src/msw/main.cpp index 6ad79060fc..d53937131a 100644 --- a/src/msw/main.cpp +++ b/src/msw/main.cpp @@ -30,6 +30,7 @@ #include "wx/event.h" #include "wx/app.h" +#include "wx/init.h" #include "wx/cmdline.h" #include "wx/msw/private.h" diff --git a/src/unix/baseunix.cpp b/src/unix/baseunix.cpp index 7eb4e77964..99a1bdcd3e 100644 --- a/src/unix/baseunix.cpp +++ b/src/unix/baseunix.cpp @@ -30,6 +30,7 @@ #endif //WX_PRECOMP #include "wx/apptrait.h" +#include "wx/utils.h" #include "wx/unix/execute.h" // for waitpid() -- 2.45.2