summaryrefslogtreecommitdiff
path: root/include/my_net.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/my_net.h')
-rw-r--r--include/my_net.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/my_net.h b/include/my_net.h
index a02a564c527..6a8e98d685c 100644
--- a/include/my_net.h
+++ b/include/my_net.h
@@ -18,6 +18,10 @@
/* thread safe version of some common functions */
/* for thread safe my_inet_ntoa */
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
#if !defined(MSDOS) && !defined(__WIN__) && !defined(__BEOS__)
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
@@ -31,3 +35,7 @@
#endif /* !defined(MSDOS) && !defined(__WIN__) */
void my_inet_ntoa(struct in_addr in, char *buf);
+
+#ifdef __cplusplus
+}
+#endif