From 38434a9ff5b9a1a048f32c1c7e2a9519cf12f8ba Mon Sep 17 00:00:00 2001 From: Diego Biurrun Date: Fri, 10 Nov 2017 15:40:30 +0100 Subject: [PATCH] configure: Simplify restrict keyword handling Skip a variable indirection and only redefine restrict if necessary. --- configure | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/configure b/configure index 9f84f88014..b4c6320f7a 100755 --- a/configure +++ b/configure @@ -4144,9 +4144,8 @@ extern_prefix=${sym%%ff_extern*} ! disabled inline_asm && check_inline_asm inline_asm '"" ::' -_restrict= -for restrict_keyword in restrict __restrict__ __restrict; do - check_cc < $TMPH <> $TMPH + test -n "$malloc_prefix" && echo "#define MALLOC_PREFIX $malloc_prefix" >>$TMPH