Move UC_INLINE to utils.h
This commit is contained in:
+2
-13
@@ -1,17 +1,8 @@
|
||||
#ifndef UC_TAILQ_H_
|
||||
#define UC_TAILQ_H_
|
||||
|
||||
#ifndef UC_INLINE
|
||||
#ifdef __GNUC__
|
||||
# ifdef __clang__
|
||||
# define UC_INLINE inline __attribute__((always_inline))
|
||||
# else
|
||||
# define UC_INLINE inline __attribute__((always_inline,flatten))
|
||||
# endif
|
||||
#else
|
||||
# define UC_INLINE inline
|
||||
#endif
|
||||
#endif
|
||||
#include "utils.h"
|
||||
|
||||
/**
|
||||
* Doubly Linked List.
|
||||
* It is used either as
|
||||
@@ -253,6 +244,4 @@ static UC_INLINE void uc_tailq_move_tail(struct TailQ *entry, struct TailQ *head
|
||||
(ptr) = (prv),\
|
||||
(prv) = UC_TAILQ_CONTAINER(UC_TAILQ_NEXT(&(ptr)->member), typeof(*ptr), member))
|
||||
|
||||
#undef UC_INLINE
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user