this seems to work more often than the present solutions

This commit is contained in:
Anthony Minessale
2012-01-05 15:48:01 -06:00
parent bc8cbee1fb
commit e7848b39b2
3 changed files with 3 additions and 24 deletions

View File

@@ -73,24 +73,3 @@ SWITCH_DECLARE(void) switch_curl_destroy(void)
curl_global_cleanup();
}
/* kind of ugly but there is no better portable way to wrap this function =(::: */
#ifndef WIN32
#include "../../../../libs/curl/lib/formdata.c"
#endif
SWITCH_DECLARE(CURLFORMcode) switch_curl_formadd(struct curl_httppost **httppost,
struct curl_httppost **last_post,
...)
{
va_list arg;
CURLFORMcode result;
va_start(arg, last_post);
#ifndef WIN32
result = FormAdd(httppost, last_post, arg);
#else
result = curl_formadd(httppost, last_post, arg);
#endif
va_end(arg);
return result;
}