From: Michael Wetherell Date: Fri, 27 May 2005 13:18:50 +0000 (+0000) Subject: wxBase compilation fix for Mac, with help from Ryan X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/19b27e78cf9428bc3c2ae3c69584072c9ff20a93 wxBase compilation fix for Mac, with help from Ryan git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34372 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/configure b/configure index 28d11f43fd..f8ccf0fd7f 100755 --- a/configure +++ b/configure @@ -40562,8 +40562,6 @@ if test "$wxUSE_MAC" = 1 ; then else LDFLAGS="$LDFLAGS -lCarbonLib" fi -elif test "$USE_DARWIN" = 1; then - LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System" fi if test "$wxUSE_COCOA" = 1 ; then LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa" @@ -40571,6 +40569,9 @@ if test "$wxUSE_COCOA" = 1 ; then LDFLAGS="$LDFLAGS -framework QuickTime" fi fi +if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then + LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices" +fi LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS" diff --git a/configure.in b/configure.in index b6ed6dbe9a..dcf20d7706 100644 --- a/configure.in +++ b/configure.in @@ -6389,8 +6389,6 @@ if test "$wxUSE_MAC" = 1 ; then else LDFLAGS="$LDFLAGS -lCarbonLib" fi -elif test "$USE_DARWIN" = 1; then - LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System" fi if test "$wxUSE_COCOA" = 1 ; then LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa" @@ -6398,6 +6396,9 @@ if test "$wxUSE_COCOA" = 1 ; then LDFLAGS="$LDFLAGS -framework QuickTime" fi fi +if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then + LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices" +fi dnl FIXME: should this be covered by the conditional above dnl given the -lm comment there? Or should that comment (and diff --git a/src/mac/corefoundation/hid.cpp b/src/mac/corefoundation/hid.cpp index 4cb4aabd04..a83519ac2c 100644 --- a/src/mac/corefoundation/hid.cpp +++ b/src/mac/corefoundation/hid.cpp @@ -573,13 +573,8 @@ bool wxGetKeyState (wxKeyCode key) // #include "wx/intl.h" -#ifdef __WXCOCOA__ #include #include -#else -#include "wx/mac/private.h" -#include "LaunchServices.h" -#endif #include "wx/uri.h" #include "wx/mac/corefoundation/cfstring.h"