[rygel/wip/meson: 41/52] db: Fix compiling if unistring is not available
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel/wip/meson: 41/52] db: Fix compiling if unistring is not available
- Date: Thu, 18 Oct 2018 09:17:59 +0000 (UTC)
commit 7f849d6df4218fae48639592b54c03ae5588d66f
Author: Jens Georg <mail jensge org>
Date: Fri Oct 12 13:27:24 2018 +0200
db: Fix compiling if unistring is not available
src/librygel-db/collate.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/librygel-db/collate.c b/src/librygel-db/collate.c
index a029e515..210ba4d7 100644
--- a/src/librygel-db/collate.c
+++ b/src/librygel-db/collate.c
@@ -22,7 +22,7 @@
#include <glib.h>
-#ifdef HAVE_UNISTRING
+#if HAVE_UNISTRING
# include <unistr.h>
#endif
@@ -36,7 +36,7 @@ gint rygel_database_utf8_collate_str (const char *a, gsize alen,
a_str = g_strndup (a, alen);
b_str = g_strndup (b, blen);
-#ifdef HAVE_UNISTRING
+#if HAVE_UNISTRING
result = u8_strcoll ((const uint8_t *) a_str, (const uint8_t *) b_str);
#else
return g_utf8_collate (a_str, b_str);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]