]> git.saurik.com Git - wxWidgets.git/commitdiff
Correct compilation conditions for wxURL::SetProxy.
authorMattia Barbon <mbarbon@cpan.org>
Sat, 19 Mar 2005 23:09:31 +0000 (23:09 +0000)
committerMattia Barbon <mbarbon@cpan.org>
Sat, 19 Mar 2005 23:09:31 +0000 (23:09 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32926 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/url.h
tests/uris/uris.cpp

index 18143b786c8f46da7eedf7608e0b09a9954eb40a..d242169b3339e9d7ce5d1ba2d5210eacc3ddfeb0 100644 (file)
@@ -64,10 +64,10 @@ public:
 
     wxInputStream *GetInputStream();
 
-#if wxUSE_SOCKETS
+#if wxUSE_PROTOCOL_HTTP
     static void SetDefaultProxy(const wxString& url_proxy);
     void SetProxy(const wxString& url_proxy);
-#endif // wxUSE_SOCKETS
+#endif // wxUSE_PROTOCOL_HTTP
 
 #if WXWIN_COMPATIBILITY_2_4
     //Use the proper wxURI accessors instead
index 3152be43aa744f1a6c2d9bb50d7a2aadae538331..959c3e2928f73716078872290340aa9f5a09e55b 100644 (file)
@@ -50,7 +50,9 @@ private:
         CPPUNIT_TEST( Comparison );
 #if TEST_URL
         CPPUNIT_TEST( URLCompat );
+#if wxUSE_PROTOCOL_HTTP
         CPPUNIT_TEST( URLProxy  );
+#endif
 #endif
     CPPUNIT_TEST_SUITE_END();
 
@@ -318,10 +320,12 @@ void URITestCase::URLCompat()
     CPPUNIT_ASSERT( test.GetPath() == wxT("%22myf%22ile.txt") );
 }
 
+#if wxUSE_PROTOCOL_HTTP
 void URITestCase::URLProxy()
 {
     wxURL url(wxT("http://www.asite.com/index.html"));
     url.SetProxy(wxT("pserv:3122"));
 }
+#endif // wxUSE_PROTOCOL_HTTP
 #endif