summaryrefslogtreecommitdiff
path: root/tests/sockets.h
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2024-10-20 15:21:43 +0200
committerJörg Frings-Fürst <debian@jff.email>2024-10-20 15:21:43 +0200
commit4682deeb62247d34de87f8e777f99e2d337fd377 (patch)
tree5bd5b5605b5f3a4b3c8ea7468c34c23094afdef4 /tests/sockets.h
parent00893e79fc62966067af1a106567db96bd170338 (diff)
New upstream version 1.3upstream/1.3upstream
Diffstat (limited to 'tests/sockets.h')
-rw-r--r--tests/sockets.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/sockets.h b/tests/sockets.h
index 99d6efca..55077ae9 100644
--- a/tests/sockets.h
+++ b/tests/sockets.h
@@ -25,6 +25,10 @@
#error "Please include config.h first."
#endif
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#define SOCKETS_1_0 0x0001
#define SOCKETS_1_1 0x0101
#define SOCKETS_2_0 0x0002
@@ -43,6 +47,11 @@ int gl_sockets_cleanup (void)
#endif
;
+#ifdef __cplusplus
+}
+#endif
+
+
/* This function is useful it you create a socket using gnulib's
Winsock wrappers but needs to pass on the socket handle to some
other library that only accepts sockets. */