Simplify libcurl initialization by using CURL_GLOBAL_ALL
Using anything else is not recommended by libcurl documentation and it's not clear why would we need it, so just follow the official advice and pass CURL_GLOBAL_ALL.
This commit is contained in:
@@ -537,11 +537,7 @@ wxVersionInfo wxWebSessionCURL::GetLibraryVersionInfo()
|
|||||||
// static
|
// static
|
||||||
void wxWebSessionCURL::InitializeCURL()
|
void wxWebSessionCURL::InitializeCURL()
|
||||||
{
|
{
|
||||||
long initFlags = CURL_GLOBAL_SSL;
|
if ( curl_global_init(CURL_GLOBAL_ALL) )
|
||||||
#ifdef WIN32
|
|
||||||
initFlags |= CURL_GLOBAL_WIN32;
|
|
||||||
#endif // WIN32
|
|
||||||
if ( curl_global_init(initFlags) )
|
|
||||||
wxLogError("libcurl could not be initialized");
|
wxLogError("libcurl could not be initialized");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user