Get rid of clang warnings for UC_INLINE
This commit is contained in:
@@ -2,10 +2,17 @@
|
||||
#define UC_PACK_H_
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#ifndef UC_INLINE
|
||||
#ifdef __GNUC__
|
||||
# define UC_INLINE inline __attribute__((always_inline))
|
||||
# ifdef __clang__
|
||||
# define UC_INLINE inline __attribute__((always_inline))
|
||||
# else
|
||||
# define UC_INLINE inline __attribute__((always_inline,flatten))
|
||||
# endif
|
||||
#else
|
||||
# define UC_INLINE inline
|
||||
# define UC_INLINE inline
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/** Functions for serializing/de-serializing integers to and from
|
||||
|
||||
Reference in New Issue
Block a user