summaryrefslogtreecommitdiff
path: root/include/curl/multi.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2016-06-21 14:39:33 +0200
committerDaniel Stenberg <daniel@haxx.se>2016-06-22 10:28:36 +0200
commit9adf3c473a01b289c781aab111f9ad2fc541ed4e (patch)
tree0ab57aadf53f4e9f3a55ab1a4be1bc32c6948e70 /include/curl/multi.h
parent04b4ee5498b14d320e3b375c64d0162cc2b53c99 (diff)
downloadcurl-9adf3c473a01b289c781aab111f9ad2fc541ed4e.tar.gz
headers: forward declare CURL, CURLM and CURLSH as structs
Instead of typedef'ing to void, typedef to their corresponding actual struct names to allow compilers to type-check. Assisted-by: Reinhard Max
Diffstat (limited to 'include/curl/multi.h')
-rw-r--r--include/curl/multi.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/curl/multi.h b/include/curl/multi.h
index 0fbbd96f0..7a1040f46 100644
--- a/include/curl/multi.h
+++ b/include/curl/multi.h
@@ -7,7 +7,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2016, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -52,7 +52,7 @@
extern "C" {
#endif
-typedef void CURLM;
+typedef struct Curl_multi CURLM;
typedef enum {
CURLM_CALL_MULTI_PERFORM = -1, /* please call curl_multi_perform() or