include/curl/websockets.h: add extern "C" for C++
Reported-by: n0name321 on github Fixes #9509 Closes #9510
This commit is contained in:
parent
c4768f168c
commit
f71b79feb5
@ -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 */
|
||||
|
||||
Loading…
Reference in New Issue
Block a user