include/curl/websockets.h: add extern "C" for C++

Reported-by: n0name321 on github
Fixes #9509
Closes #9510
This commit is contained in:
Daniel Stenberg 2022-09-15 08:40:59 +02:00
parent c4768f168c
commit f71b79feb5
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -24,6 +24,10 @@
*
***************************************************************************/
#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 */