detectin of __restrict keyword - patch by Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6659 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
arpi 2002-07-06 15:20:10 +00:00
parent 146376549d
commit d038772c8c
1 changed files with 16 additions and 0 deletions

16
configure vendored
View File

@ -1430,6 +1430,19 @@ else
fi
echores "$_runtime_cpudetection"
echocheck "restrict keyword"
for restrict_keyword in restrict __restrict __restrict__ ; do
echo "void foo(char * $restrict_keyword p); int main(){}" > $TMPC
if cc_check; then
_def_restrict_keyword=$restrict_keyword
break;
fi
done
if [ -n "$_def_restrict_keyword" ]; then
echores "$_def_restrict_keyword"
else
echores "none"
fi
echocheck "kstat"
cat > $TMPC << EOF
@ -4131,6 +4144,9 @@ $_def_i18n
/* Runtime Cpudetection */
$_def_runtime_cpudetection
/* "restrict" keyword */
#define restrict $_def_restrict_keyword
#define PREFIX "$_prefix"
/* define this to use simple idct with patched libavcodec */