Hi all,

I attach a tiny Patch for ecore_con_url_httpauth_set().

CURLOPT_USERNAME and CURLOPT_PASSWORD is declared in enum, so those
options isn't able to be used #ifdef macro's argument.

This patch checks that LIBCURLVERSION_NUM is 0x071301(v7.19.1) and
over.  Because CURLOPT_USERNAME and CURLOPT_PASSWORD was added at
7.19.1.

thanks to confirm this patch.

Best Regards.

-- 
Naruto TAKAHASHI
tnar...@gmail.com
diff --git a/trunk/ecore/src/lib/ecore_con/ecore_con_url.c b/trunk/ecore/src/lib/ecore_con/ecore_con_url.c
index 4590939..9da0412 100644
--- a/trunk/ecore/src/lib/ecore_con/ecore_con_url.c
+++ b/trunk/ecore/src/lib/ecore_con/ecore_con_url.c
@@ -688,8 +688,7 @@ ecore_con_url_httpauth_set(Ecore_Con_Url *url_con, const char *username, const c
 	ECORE_MAGIC_FAIL(url_con, ECORE_MAGIC_CON_URL, "ecore_con_url_httpauth_set");
 	return 0;
      }
-# ifdef CURLOPT_USERNAME
-#  ifdef CURLOPT_PASSWORD   
+# if LIBCURL_VERSION_NUM >= 0x071301
    if ((username != NULL) && (password != NULL))
      {
 	if (safe)
@@ -700,7 +699,6 @@ ecore_con_url_httpauth_set(Ecore_Con_Url *url_con, const char *username, const c
 	curl_easy_setopt(url_con->curl_easy, CURLOPT_PASSWORD, password);
         return 1;
      }
-#  endif
 # endif
 #endif
    return 0;
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to