AC_C_INLINE
+dnl Check for "extern inline".
+AC_CACHE_CHECK(
+ for extern inline,
+ ac_cv_c_extern_inline,
+ [
+ ac_cv_c_extern_inline=no
+ AC_TRY_COMPILE(
+ [
+ extern $ac_cv_c_inline double foo(double x);
+ extern $ac_cv_c_inline double foo(double x) { return x+1.0; };
+ double foo (double x) { return x + 1.0; };
+ ],
+ [foo(1.0)],
+ [ac_cv_c_extern_inline="yes"])])
+if test "$ac_cv_c_extern_inline" != no ; then
+ AC_DEFINE(HAVE_EXTERN_INLINE, 1,
+ Define to 1 if your compiler supports extern inline)
+fi
+
AC_CONFIG_FILES([Makefile dev.mk])
AC_OUTPUT
/* hashtable_iterator_key
* - return the value of the (key,value) pair at the current position */
-extern inline void *
+#ifdef HAVE_EXTERN_INLINE
+extern inline
+#else
+static
+#endif
+void *
hashtable_iterator_key(struct hashtable_itr *i)
{
return i->e->k;
/*****************************************************************************/
/* value - return the value of the (key,value) pair at the current position */
-extern inline void *
+#ifdef HAVE_EXTERN_INLINE
+extern inline
+#else
+static
+#endif
+void *
hashtable_iterator_value(struct hashtable_itr *i)
{
return i->e->v;