]> git.saurik.com Git - wxWidgets.git/commitdiff
Add some version checks to help compiling on OSX.
authorSteve Lamerton <steve.lamerton@gmail.com>
Thu, 18 Aug 2011 10:51:57 +0000 (10:51 +0000)
committerSteve Lamerton <steve.lamerton@gmail.com>
Thu, 18 Aug 2011 10:51:57 +0000 (10:51 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68771 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/webview_webkit.mm

index f0175d48ab5f60ef6c3c624ebfbba741f22244df..eaadf3e2083b92ab34eb8438eaa317056ffc4e33 100644 (file)
@@ -1084,16 +1084,20 @@ wxString nsErrorToWxHtmlError(NSError* error, wxWebViewNavigationError* out)
                 *out = wxWEB_NAV_ERR_USER_CANCELLED;
                 break;
 
+#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5                
             case NSURLErrorCannotDecodeRawData:
             case NSURLErrorCannotDecodeContentData:
-            case NSURLErrorBadServerResponse:
             case NSURLErrorCannotParseResponse:
+#endif
+            case NSURLErrorBadServerResponse:
                 *out = wxWEB_NAV_ERR_REQUEST;
                 break;
 
             case NSURLErrorUserAuthenticationRequired:
             case NSURLErrorSecureConnectionFailed:
+#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_6
             case NSURLErrorClientCertificateRequired:
+#endif
                 *out = wxWEB_NAV_ERR_AUTH;
                 break;