[rygel/wip/meson: 33/44] db: Fix compiling if unistring is not available



commit 87c2da78e8e9c0600214f4d116448e52f2c5873f
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]