aboutsummaryrefslogtreecommitdiffstats
path: root/wsutil
diff options
context:
space:
mode:
authorDario Lombardo <lomato@gmail.com>2016-10-22 21:28:09 +0200
committerGuy Harris <guy@alum.mit.edu>2016-10-22 23:27:26 +0000
commitd3b2ee9b0c41478d627e90e8a9ef3b5e02512b43 (patch)
tree4bf46c90b84318bc49d54ff28f417b77282f2b81 /wsutil
parent6b03eea7143c4fb41110e8de3a16a31146300fe7 (diff)
wsutil: add statements for c++ calls.
Change-Id: I082eb462b0a6ce77f9ca82c51d79d65516c92b53 Reviewed-on: https://code.wireshark.org/review/18401 Petri-Dish: Dario Lombardo <lomato@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'wsutil')
-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
/*