From 1dea883a444172f54f86c0888add211f55cb7f12 Mon Sep 17 00:00:00 2001 From: faust3 Date: Sat, 30 Oct 2004 09:31:33 +0000 Subject: avoid infinite recursion patch by Bernhard Rosenkraenzer git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13806 b3059339-0415-0410-9bf9-f77b7e298cf2 --- configure | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'configure') diff --git a/configure b/configure index d348cc1079..47c9a1c4f8 100755 --- a/configure +++ b/configure @@ -2283,6 +2283,12 @@ if [ -n "$_def_restrict_keyword" ]; then else echores "none" fi +# Avoid infinite recursion loop ("#define restrict restrict") +if [ "$_def_restrict_keyword" != "restrict" ]; then + _def_restrict_keyword="#define restrict $_def_restrict_keyword" +else + _def_restrict_keyword="" +fi echocheck "kstat" @@ -6588,7 +6594,7 @@ $_def_runtime_cpudetection $_def_dynamic_plugins /* "restrict" keyword */ -#define restrict $_def_restrict_keyword +$_def_restrict_keyword /* attribute(used) as needed by some compilers */ #if (__GNUC__ * 100 + __GNUC_MINOR__ >= 300) -- cgit v1.2.3