Move UC_INLINE to utils.h
This commit is contained in:
@@ -4,17 +4,6 @@
|
||||
#include <stddef.h>
|
||||
#include "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
|
||||
|
||||
/** @file
|
||||
* mbuf - A managed message/memory buffer.
|
||||
@@ -220,6 +209,4 @@ static UC_INLINE uint8_t *uc_mbuf_head(struct MBuf* mbuf)
|
||||
return mbuf->head;
|
||||
}
|
||||
|
||||
#undef UC_INLINE
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user