From: Hirotaka Tagawa Date: Sat, 5 Nov 2022 08:03:16 +0000 (+0900) Subject: headers: add endif comments X-Git-Tag: curl-7_87_0~186 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=39538fcc4eec91a681b6dd3ac2f25c6baf433b3a;p=thirdparty%2Fcurl.git headers: add endif comments Closes #9853 --- diff --git a/include/curl/curl.h b/include/curl/curl.h index e435bf0b0c..8582d1c17a 100644 --- a/include/curl/curl.h +++ b/include/curl/curl.h @@ -3105,7 +3105,7 @@ CURL_EXTERN CURLcode curl_easy_pause(CURL *handle, int bitmask); #define CURLPAUSE_CONT (CURLPAUSE_RECV_CONT|CURLPAUSE_SEND_CONT) #ifdef __cplusplus -} +} /* end of extern "C" */ #endif /* unfortunately, the easy.h and multi.h include files need options and info @@ -3132,6 +3132,6 @@ CURL_EXTERN CURLcode curl_easy_pause(CURL *handle, int bitmask); #define curl_share_setopt(share,opt,param) curl_share_setopt(share,opt,param) #define curl_multi_setopt(handle,opt,param) curl_multi_setopt(handle,opt,param) #endif /* __STDC__ >= 1 */ -#endif /* gcc >= 4.3 && !__cplusplus */ +#endif /* gcc >= 4.3 && !__cplusplus && !CURL_DISABLE_TYPECHECK */ #endif /* CURLINC_CURL_H */ diff --git a/include/curl/easy.h b/include/curl/easy.h index 9c7e63adad..98ee8888ed 100644 --- a/include/curl/easy.h +++ b/include/curl/easy.h @@ -119,7 +119,7 @@ CURL_EXTERN CURLcode curl_easy_send(CURL *curl, const void *buffer, CURL_EXTERN CURLcode curl_easy_upkeep(CURL *curl); #ifdef __cplusplus -} +} /* end of extern "C" */ #endif #endif diff --git a/include/curl/mprintf.h b/include/curl/mprintf.h index cb948dcd97..06ef5c6d8c 100644 --- a/include/curl/mprintf.h +++ b/include/curl/mprintf.h @@ -46,7 +46,7 @@ CURL_EXTERN char *curl_maprintf(const char *format, ...); CURL_EXTERN char *curl_mvaprintf(const char *format, va_list args); #ifdef __cplusplus -} +} /* end of extern "C" */ #endif #endif /* CURLINC_MPRINTF_H */ diff --git a/projects/wolfssl_options.h b/projects/wolfssl_options.h index c30d097771..b2154cea3c 100644 --- a/projects/wolfssl_options.h +++ b/projects/wolfssl_options.h @@ -301,7 +301,7 @@ extern "C" { #ifdef __cplusplus -} +} /* end of extern "C" */ #endif