From b770e5f2727e6447de45248df81c73604ced0917 Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Sun, 30 Mar 2014 00:25:35 -0500 Subject: [PATCH] avl_tree: Remove dependency on compiler.h --- include/wimlib/avl_tree.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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 { -- 2.43.0