]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
queue: check if list_move is already defined
authorCarlo Landmeter <clandmeter@gmail.com>
Tue, 13 Jan 2015 13:33:08 +0000 (14:33 +0100)
committerJaroslav Kysela <perex@perex.cz>
Tue, 13 Jan 2015 17:52:03 +0000 (18:52 +0100)
src/queue.h

index 74d4c84bb353db34af18e5ba8b64856515973ecf..ff221988290051f658b0548ea08f0af3ed3d7ca6 100644 (file)
  * 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)) {                                 \