summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorfaust3 <faust3@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-10-30 09:31:33 +0000
committerfaust3 <faust3@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-10-30 09:31:33 +0000
commit1dea883a444172f54f86c0888add211f55cb7f12 (patch)
treec864d635548002e542dbdaf4af51c1bfc9588229 /configure
parent60425413749a2c4a6aa70989215fa5998b2929da (diff)
downloadmpv-1dea883a444172f54f86c0888add211f55cb7f12.tar.bz2
mpv-1dea883a444172f54f86c0888add211f55cb7f12.tar.xz
avoid infinite recursion patch by Bernhard Rosenkraenzer <bero@arklinux.org>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13806 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure8
1 files changed, 7 insertions, 1 deletions
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)