From d3b2ee9b0c41478d627e90e8a9ef3b5e02512b43 Mon Sep 17 00:00:00 2001 From: Dario Lombardo Date: Sat, 22 Oct 2016 21:28:09 +0200 Subject: wsutil: add statements for c++ calls. Change-Id: I082eb462b0a6ce77f9ca82c51d79d65516c92b53 Reviewed-on: https://code.wireshark.org/review/18401 Petri-Dish: Dario Lombardo Tested-by: Petri Dish Buildbot Reviewed-by: Guy Harris --- wsutil/strtoi.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'wsutil') 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 /* -- cgit v1.2.1