From 440dbbbf615de11acdd8216df0e3676e8efb9ba1 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Fri, 27 Dec 2024 01:55:34 +0100 Subject: Add extern "C" guards to public headers --- include/libimobiledevice-glue/socket.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/libimobiledevice-glue/socket.h') diff --git a/include/libimobiledevice-glue/socket.h b/include/libimobiledevice-glue/socket.h index 500d382..fbb06da 100644 --- a/include/libimobiledevice-glue/socket.h +++ b/include/libimobiledevice-glue/socket.h @@ -43,6 +43,10 @@ typedef enum fd_mode fd_mode; #include +#ifdef __cplusplus +extern "C" { +#endif + #ifndef _WIN32 LIMD_GLUE_API int socket_create_unix(const char *filename); LIMD_GLUE_API int socket_connect_unix(const char *filename); @@ -69,4 +73,8 @@ LIMD_GLUE_API const char *socket_addr_to_string(struct sockaddr *addr, char *add LIMD_GLUE_API int get_primary_mac_address(unsigned char mac_addr_buf[6]); +#ifdef __cplusplus +} +#endif + #endif /* SOCKET_SOCKET_H */ -- cgit v1.1-32-gdbae