]> git.saurik.com Git - wxWidgets.git/commitdiff
Another compilation fix for OSX 10.5
authorSteve Lamerton <steve.lamerton@gmail.com>
Sat, 20 Aug 2011 09:50:00 +0000 (09:50 +0000)
committerSteve Lamerton <steve.lamerton@gmail.com>
Sat, 20 Aug 2011 09:50:00 +0000 (09:50 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68794 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/webview_webkit.mm

index eaadf3e2083b92ab34eb8438eaa317056ffc4e33..0d0e0e72e3c8b818ae4909b75b067c52bc60040b 100644 (file)
@@ -1062,7 +1062,9 @@ wxString nsErrorToWxHtmlError(NSError* error, wxWebViewNavigationError* out)
 
             case NSURLErrorResourceUnavailable:
             case NSURLErrorHTTPTooManyRedirects:
+#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5
             case NSURLErrorDataLengthExceedsMaximum:
+#endif
             case NSURLErrorBadURL:
             case NSURLErrorFileIsDirectory:
                 *out = wxWEB_NAV_ERR_REQUEST;