summaryrefslogtreecommitdiff
path: root/include/curl/curl.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/curl.h
parent04b4ee5498b14d320e3b375c64d0162cc2b53c99 (diff)
downloadgnurl-9adf3c473a01b289c781aab111f9ad2fc541ed4e.tar.gz
gnurl-9adf3c473a01b289c781aab111f9ad2fc541ed4e.tar.bz2
gnurl-9adf3c473a01b289c781aab111f9ad2fc541ed4e.zip
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/curl.h')
-rw-r--r--include/curl/curl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/curl/curl.h b/include/curl/curl.h
index b9bd8b706..b91f02ccd 100644
--- a/include/curl/curl.h
+++ b/include/curl/curl.h
@@ -91,7 +91,7 @@
extern "C" {
#endif
-typedef void CURL;
+typedef struct SessionHandle CURL;
/*
* libcurl external API function linkage decorations.
@@ -2258,7 +2258,7 @@ typedef void (*curl_unlock_function)(CURL *handle,
curl_lock_data data,
void *userptr);
-typedef void CURLSH;
+typedef struct Curl_share CURLSH;
typedef enum {
CURLSHE_OK, /* all is fine */