--- configure.ac 1 Aug 2005 09:54:56 -0000 1.37 +++ configure.ac 12 Aug 2005 13:14:41 -0000 @@ -437,6 +437,14 @@ AC_SUBST(LIBLDFLAGS)dnl AC_PROG_CPP dnl Figure out how to run C preprocessor. AC_PROG_GCC_TRADITIONAL dnl Do we need -traditional flag for gcc. AC_C_CONST dnl Does compiler support `const'. +AC_C_INLINE + +AH_TEMPLATE([INLINE_AVAILABLE], +[Define to 1 if inline functions are possible.]) +case $ac_cv_c_inline in + no) ;; + *) AC_DEFINE(INLINE_AVAILABLE) ;; +esac dnl Default preprocessing on Mac OS X produces warnings case "$host_os" in --- Src/Zle/zle.h 12 Aug 2005 13:12:37 -0000 1.16 +++ Src/Zle/zle.h 12 Aug 2005 13:14:41 -0000 @@ -90,7 +90,7 @@ typedef int ZLE_INT_T; #define ZS_memset memset #define ZS_memcmp memcmp -#ifdef __GNUC__ +#ifdef INLINE_AVAILABLE static inline size_t ZS_strlen(ZLE_STRING_T s) { return strlen((char*)s); } static inline ZLE_STRING_T ZS_strcpy(ZLE_STRING_T t, ZLE_STRING_T f)