From: Eric Biggers Date: Sun, 30 Mar 2014 05:25:35 +0000 (-0500) Subject: avl_tree: Remove dependency on compiler.h X-Git-Tag: v1.6.2~8 X-Git-Url: https://wimlib.net/git/?p=wimlib;a=commitdiff_plain;h=b770e5f2727e6447de45248df81c73604ced0917 avl_tree: Remove dependency on compiler.h --- diff --git a/include/wimlib/avl_tree.h b/include/wimlib/avl_tree.h index 00fdd3e9..da5bbd06 100644 --- a/include/wimlib/avl_tree.h +++ b/include/wimlib/avl_tree.h @@ -16,11 +16,13 @@ #include #include -#include /* for uintptr_t */ -#include /* for _always_inline_attribute. You can - instead define it below if you want. */ +#include /* for uintptr_t */ -#define AVL_INLINE _always_inline_attribute +#ifdef __GNUC__ +# define AVL_INLINE inline __attribute__((always_inline)) +#else +# define AVL_INLINE inline +#endif /* Node in an AVL tree. Embed this in some other data structure. */ struct avl_tree_node {