forked from enlightenment/efl
From: Naruto TAKAHASHI <tnaruto@gmail.com>
Subject: [E-devel] [PATCH] ecore_con_url_httpauth_set() 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. SVN revision: 50539
This commit is contained in:
parent
e4b874d3c4
commit
b7b6e3c585
|
@ -739,8 +739,7 @@ ecore_con_url_httpauth_set(Ecore_Con_Url *url_con, const char *username,
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
# ifdef CURLOPT_USERNAME
|
# if LIBCURL_VERSION_NUM >= 0x071301
|
||||||
# ifdef CURLOPT_PASSWORD
|
|
||||||
if ((username != NULL) && (password != NULL))
|
if ((username != NULL) && (password != NULL))
|
||||||
{
|
{
|
||||||
if (safe)
|
if (safe)
|
||||||
|
@ -754,7 +753,6 @@ ecore_con_url_httpauth_set(Ecore_Con_Url *url_con, const char *username,
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
# endif
|
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue