From 6b2b4167187fee09365271cca182866ecb029af3 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 18 Mar 2024 14:56:16 +0000 Subject: [Rework] Remove some of the GLib types in lieu of standard ones This types have constant conflicts with the system ones especially on OSX. --- src/libutil/str_util.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libutil/str_util.h') diff --git a/src/libutil/str_util.h b/src/libutil/str_util.h index 07560cc2f..ff5827a0b 100644 --- a/src/libutil/str_util.h +++ b/src/libutil/str_util.h @@ -59,7 +59,7 @@ guint rspamd_str_lc_utf8(gchar *str, guint size); /* * Hash table utility functions for case insensitive hashing */ -guint64 rspamd_icase_hash(const gchar *in, gsize len, guint64 seed); +uint64_t rspamd_icase_hash(const gchar *in, gsize len, uint64_t seed); guint rspamd_strcase_hash(gconstpointer key); @@ -140,7 +140,7 @@ gboolean rspamd_strtol(const gchar *s, gsize len, glong *value); * Try to convert a string of length to unsigned long */ gboolean rspamd_strtoul(const gchar *s, gsize len, gulong *value); -gboolean rspamd_strtou64(const gchar *s, gsize len, guint64 *value); +gboolean rspamd_strtou64(const gchar *s, gsize len, uint64_t *value); /* * Try to convert a hex string of length to unsigned long -- cgit v1.2.3