summaryrefslogtreecommitdiff
path: root/src/htsnet.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/htsnet.h')
-rw-r--r--src/htsnet.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/htsnet.h b/src/htsnet.h
index 2cc7499..a393129 100644
--- a/src/htsnet.h
+++ b/src/htsnet.h
@@ -74,6 +74,10 @@ typedef unsigned long in_addr_t;
#endif
#endif
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* Ipv4 structures */
#if HTS_INET6 != 0
typedef struct in6_addr INaddr;
@@ -253,4 +257,8 @@ static HTS_UNUSED void SOCaddr_inetntoa_(char *namebuf, size_t namebuflen,
/* Socket length type */
typedef socklen_t SOClen;
+#ifdef __cplusplus
+}
+#endif
+
#endif