]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
include/curl/websockets.h: add extern "C" for C++
authorDaniel Stenberg <daniel@haxx.se>
Thu, 15 Sep 2022 06:40:59 +0000 (08:40 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 15 Sep 2022 09:18:37 +0000 (11:18 +0200)
Reported-by: n0name321 on github
Fixes #9509
Closes #9510

include/curl/websockets.h

index e1c4d9308570639fd4063ba7988916f5a5b34be5..e128526f4ebb0b309ad6bf80c0576505cc2ec4d4 100644 (file)
  *
  ***************************************************************************/
 
+#ifdef  __cplusplus
+extern "C" {
+#endif
+
 /* generic in/out flag bits */
 #define CURLWS_TEXT       (1<<0)
 #define CURLWS_BINARY     (1<<1)
@@ -68,4 +72,8 @@ struct curl_ws_metadata {
 
 CURL_EXTERN struct curl_ws_metadata *curl_ws_meta(CURL *curl);
 
+#ifdef  __cplusplus
+}
+#endif
+
 #endif /* CURLINC_WEBSOCKETS_H */