From: Joel Rosdahl Date: Sun, 28 Feb 2010 13:27:45 +0000 (+0100) Subject: Another try at supporting systems without support for "extern inline" X-Git-Tag: v3.0pre0~15 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9c9a31ccb2c6d26e578ab41c1613db6c40381149;p=thirdparty%2Fccache.git Another try at supporting systems without support for "extern inline" --- diff --git a/hashtable_itr.h b/hashtable_itr.h index 0c6905ab9..9523b14a4 100644 --- a/hashtable_itr.h +++ b/hashtable_itr.h @@ -29,29 +29,29 @@ hashtable_iterator(struct hashtable *h); * - return the value of the (key,value) pair at the current position */ #ifdef HAVE_EXTERN_INLINE -extern inline -#else -static -#endif -void * +extern inline void * hashtable_iterator_key(struct hashtable_itr *i) { return i->e->k; } +#else +void * +hashtable_iterator_key(struct hashtable_itr *i); +#endif /*****************************************************************************/ /* value - return the value of the (key,value) pair at the current position */ #ifdef HAVE_EXTERN_INLINE -extern inline -#else -static -#endif -void * +extern inline void * hashtable_iterator_value(struct hashtable_itr *i) { return i->e->v; } +#else +void * +hashtable_iterator_value(struct hashtable_itr *i); +#endif /*****************************************************************************/ /* advance - advance the iterator to the next element