Fix declaration and export the routines.

Add a missing semicolon, and export the routines with WS_DLL_PUBLIC, so
they can be used by plugins.

Change-Id: Iaf52e70ce9fbfce3cfa675c453b7d39a0341dfeb
Reviewed-on: https://code.wireshark.org/review/7184
Reviewed-by: Guy Harris <guy@alum.mit.edu>
This commit is contained in:
Guy Harris 2015-02-16 11:50:40 -08:00
parent 907f4e8469
commit db2395f14f
1 changed files with 5 additions and 3 deletions

View File

@ -25,15 +25,17 @@ extern "C" {
#include <glib.h>
#include "ws_symbol_export.h"
/* g_int64_hash, g_int64_equal are defined starting glib 2.22 - otherwise,
we have to provide them ourselves */
#if !GLIB_CHECK_VERSION(2,22,0)
guint
WS_DLL_PUBLIC guint
g_int64_hash (gconstpointer v);
gboolean
WS_DLL_PUBLIC gboolean
g_int64_equal (gconstpointer v1,
gconstpointer v2)
gconstpointer v2);
#endif /* !GLIB_CHECK_VERSION(2,22,0) */
#ifdef __cplusplus