aboutsummaryrefslogtreecommitdiff
path: root/src/include/sockio.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/sockio.h')
-rw-r--r--src/include/sockio.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/include/sockio.h b/src/include/sockio.h
index f618dbc4..07d9097a 100644
--- a/src/include/sockio.h
+++ b/src/include/sockio.h
@@ -53,6 +53,11 @@
#include "openaxiom-c-macros.h"
#include "open-axiom.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
/* On Windows, a socket identifier is not a file descriptor. It is
represented by an integer type, but that integer type is not just
plain int as in the Unix world. It is an unsigned integer.
@@ -221,4 +226,8 @@ OPENAXIOM_EXPORT extern fd_set socket_mask;
OPENAXIOM_EXPORT extern fd_set server_mask;
+#ifdef __cplusplus
+}
+#endif
+
#endif /* OPENAXIOM_SOCKIO_included */