aboutsummaryrefslogtreecommitdiffstats
path: root/src/util/list_sort.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-10-15 22:04:17 +0200
committerMax Kellermann <max@duempel.org>2013-10-15 22:47:39 +0200
commit509f8dab8946cfc311def89f62352c0881e73348 (patch)
tree913fbb714704bcffc0ca6b8f44cdfb293ec9ee24 /src/util/list_sort.c
parent77429b6dd35e23efac92630bab35d935b9496345 (diff)
downloadmpd-509f8dab8946cfc311def89f62352c0881e73348.tar.gz
mpd-509f8dab8946cfc311def89f62352c0881e73348.tar.xz
mpd-509f8dab8946cfc311def89f62352c0881e73348.zip
Util/Macros: replacement for GLib's G_N_ELEMENTS()
Diffstat (limited to 'src/util/list_sort.c')
-rw-r--r--src/util/list_sort.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/util/list_sort.c b/src/util/list_sort.c
index ddf3208e9..8534f3360 100644
--- a/src/util/list_sort.c
+++ b/src/util/list_sort.c
@@ -24,12 +24,12 @@
#include "list_sort.h"
#include "list.h"
+#include "Macros.hxx"
+#include "Compiler.h"
-#include <glib.h>
#include <string.h>
-#define unlikely G_UNLIKELY
-#define ARRAY_SIZE G_N_ELEMENTS
+#define unlikely gcc_unlikely
#define MAX_LIST_LENGTH_BITS 20