diff options
-rw-r--r-- | auto.def | 4 | ||||
-rw-r--r-- | jim-file.c | 4 |
2 files changed, 8 insertions, 0 deletions
@@ -191,6 +191,10 @@ if {"-Werror" in [get-define CFLAGS] && [cctest -cflags -Wno-error]} { cc-with {-cflags -Wno-error} } +# Very old compilers might not have restrict +cc-check-some-feature restrict { + cctest -declare {extern void restrict_test(const char * restrict param);} +} cc-check-types "long long" cc-check-sizeof int @@ -370,6 +370,10 @@ static int file_cmd_tail(Jim_Interp *interp, int argc, Jim_Obj *const *argv) return JIM_OK; } +#ifndef HAVE_RESTRICT +#define restrict +#endif + static char *JimRealPath(const char *restrict path, char *restrict resolved_path, size_t len) { #if ISWINDOWS |