Branch: Tag:

2004-03-12

2004-03-12 14:06:57 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Some C99 compilers (eg icc7.0) do not fully support the restrict keyword.

Rev: src/acconfig.h:1.138
Rev: src/configure.in:1.818

1: - AC_REVISION("$Id: configure.in,v 1.817 2004/03/12 11:52:42 grubba Exp $") + AC_REVISION("$Id: configure.in,v 1.818 2004/03/12 14:06:56 grubba Exp $")   AC_INIT(interpret.c)   AC_CONFIG_HEADER(machine.h)   
2495:    fi   fi    + AC_MSG_CHECKING([if restrict keyword is available (C99)]) + AC_CACHE_VAL(pike_cv_keyword_restrict, [ +  AC_TRY_COMPILE([ + extern int foo(void *bar[restrict], void *restrict baz); +  ], [], [ pike_cv_keyword_restrict="yes" ], [ pike_cv_keyword_restrict="no" ]) + ]) + AC_MSG_RESULT($pike_cv_keyword_restrict) + if test "x$pike_cv_keyword_restrict" = "xno"; then +  AC_DEFINE(restrict, [ /* Not supported */ ]) + fi +    AC_C_CHAR_UNSIGNED      AC_MSG_CHECKING(if we can cast void * to a function pointer)