[rygel/wip/meson: 36/49] db: Fix compiling if unistring is not available



commit 0c89d34329568d36ca50d4f1c0361e008078364e
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]