summaryrefslogtreecommitdiff
path: root/src/net/download.h
diff options
context:
space:
mode:
authorjak1 <jak1@themanaworld.org>2023-04-07 03:04:54 +0200
committerjak1 <jak1@themanaworld.org>2023-04-07 03:04:54 +0200
commitf683acc05a4edf5ae95a72d3ecffc7ed7c6b248f (patch)
treef8293378ef2f6fc8cf553ecbb0c27ac98d415886 /src/net/download.h
parent5858b44f42c76e698a4806f874f8cbaa1c64abaf (diff)
downloadmanaverse-f683acc05a4edf5ae95a72d3ecffc7ed7c6b248f.tar.gz
manaverse-f683acc05a4edf5ae95a72d3ecffc7ed7c6b248f.tar.bz2
manaverse-f683acc05a4edf5ae95a72d3ecffc7ed7c6b248f.tar.xz
manaverse-f683acc05a4edf5ae95a72d3ecffc7ed7c6b248f.zip
fixed curl deprecation
Diffstat (limited to 'src/net/download.h')
-rw-r--r--src/net/download.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/net/download.h b/src/net/download.h
index 75dcf9b4b..c838943b7 100644
--- a/src/net/download.h
+++ b/src/net/download.h
@@ -95,8 +95,7 @@ class Download final
static size_t writeFunction(void *ptr, size_t size,
size_t nmemb, void *stream);
- static void prepareForm(curl_httppost **form,
- const std::string &fileName);
+ static void prepareForm(Download *const d, const std::string &fileName);
static unsigned long fadler32(FILE *const file) A_WARN_UNUSED;
@@ -135,7 +134,11 @@ class Download final
SDL_Thread *mThread;
CURL *mCurl;
curl_slist *mHeaders;
+#if LIBCURL_VERSION_NUM < 0x073800
curl_httppost *mFormPost;
+#else
+ curl_mime *mMime;
+#endif
char *mError;
bool mIgnoreError;
bool mUpload;