Browse Source

headers: add endif comments

Closes #9853
Hirotaka Tagawa 1 year ago
parent
commit
39538fcc4e
4 changed files with 5 additions and 5 deletions
  1. 2 2
      include/curl/curl.h
  2. 1 1
      include/curl/easy.h
  3. 1 1
      include/curl/mprintf.h
  4. 1 1
      projects/wolfssl_options.h

+ 2 - 2
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 */

+ 1 - 1
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

+ 1 - 1
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 */

+ 1 - 1
projects/wolfssl_options.h

@@ -301,7 +301,7 @@ extern "C" {
 
 
 #ifdef __cplusplus
-}
+} /* end of extern "C" */
 #endif