From: Carlo Landmeter Date: Tue, 13 Jan 2015 13:33:08 +0000 (+0100) Subject: queue: check if list_move is already defined X-Git-Tag: v4.1~483 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0d5194c17c694a9b34c9056c5dc2b63eb0697d84;p=thirdparty%2Ftvheadend.git queue: check if list_move is already defined --- diff --git a/src/queue.h b/src/queue.h index 74d4c84bb..ff2219882 100644 --- a/src/queue.h +++ b/src/queue.h @@ -86,12 +86,14 @@ * Some extra functions for LIST manipulation */ +#ifndef LIST_MOVE #define LIST_MOVE(newhead, oldhead, field) do { \ if((oldhead)->lh_first) { \ (oldhead)->lh_first->field.le_prev = &(newhead)->lh_first; \ } \ (newhead)->lh_first = (oldhead)->lh_first; \ -} while (0) +} while (0) +#endif #define LIST_INSERT_SORTED(head, elm, field, cmpfunc) do { \ if(LIST_EMPTY(head)) { \