summaryrefslogtreecommitdiff
path: root/wsutil/strtoi.h
diff options
context:
space:
mode:
Diffstat (limited to 'wsutil/strtoi.h')
-rw-r--r--wsutil/strtoi.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/wsutil/strtoi.h b/wsutil/strtoi.h
index eb65fec218..2b92cc969b 100644
--- a/wsutil/strtoi.h
+++ b/wsutil/strtoi.h
@@ -29,6 +29,10 @@
#include "ws_symbol_export.h"
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
/*
* \brief Convert a decimal string to a signed/unsigned int, with error checks.
* \param str The string to convert
@@ -69,6 +73,10 @@ WS_DLL_PUBLIC gboolean ws_hexstrtou32(const gchar* str, const gchar** endptr, gu
WS_DLL_PUBLIC gboolean ws_hexstrtou16(const gchar* str, const gchar** endptr, guint16* cint);
WS_DLL_PUBLIC gboolean ws_hexstrtou8 (const gchar* str, const gchar** endptr, guint8* cint);
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
#endif
/*