]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix windows build - hopefully this is correct - this change only effects windows.
authorJeff Lenk <jeff@jefflenk.com>
Thu, 5 Jan 2012 04:13:47 +0000 (22:13 -0600)
committerJeff Lenk <jeff@jefflenk.com>
Thu, 5 Jan 2012 04:13:47 +0000 (22:13 -0600)
src/switch_curl.c

index 6b0baac2f72e64282bc59810389bcac0a7aff3da..01929f1686293b73e27467409393b232ded2b726 100644 (file)
@@ -74,7 +74,13 @@ SWITCH_DECLARE(void) switch_curl_destroy(void)
 }
 
 /* kind of ugly but there is no better portable way to wrap this function =(::: */
+#ifndef WIN32
 #include "../../../../libs/curl/lib/formdata.c"
+#else
+extern CURLFORMcode curl_formadd(struct curl_httppost **httppost,
+                          struct curl_httppost **last_post,
+                          ...);
+#endif
 
 SWITCH_DECLARE(CURLFORMcode) switch_curl_formadd(struct curl_httppost **httppost,
                                                                 struct curl_httppost **last_post,
@@ -83,7 +89,11 @@ SWITCH_DECLARE(CURLFORMcode) switch_curl_formadd(struct curl_httppost **httppost
   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;
 }