X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2ecd1756e4238edc910a38a18f84b4f5bf42f85c..9f7e7edb78aa19d6aed53b113aa953c24d6335b1:/src/common/utilscmn.cpp diff --git a/src/common/utilscmn.cpp b/src/common/utilscmn.cpp index 2e8c64bfe6..42d60c2c4d 100644 --- a/src/common/utilscmn.cpp +++ b/src/common/utilscmn.cpp @@ -84,10 +84,7 @@ #endif // ! __WXPALMOS5__ #ifdef __WXMAC__ -#include "wx/mac/private.h" -#ifndef __DARWIN__ -#include "InternetConfig.h" -#endif +#include "wx/osx/private.h" #endif #ifndef __WXPALMOS5__ @@ -1054,7 +1051,7 @@ bool wxLaunchDefaultBrowser(const wxString& urlOrig, int flags) // NOTE: We need to call the real implementation from src/cocoa/utils.mm // because the code must use Objective-C features. return wxCocoaLaunchDefaultBrowser(url, flags); -#elif defined(__WXMAC__) +#elif defined(__WXMAC__) && !defined(__WXOSX_IPHONE__) wxCFRef< CFURLRef > curl( CFURLCreateWithString( kCFAllocatorDefault, wxCFStringRef( url ), NULL ) ); OSStatus err = LSOpenCFURLRef( curl , NULL );