]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Another try at supporting systems without support for "extern inline"
authorJoel Rosdahl <joel@rosdahl.net>
Sun, 28 Feb 2010 13:27:45 +0000 (14:27 +0100)
committerJoel Rosdahl <joel@rosdahl.net>
Sun, 28 Feb 2010 13:55:50 +0000 (14:55 +0100)
hashtable_itr.h

index 0c6905ab9a63087b82f3b802aa2c8fc706a8584c..9523b14a4b6bdf7801a0cba8b88955b701f58fd9 100644 (file)
@@ -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