mirror of
https://github.com/mpv-player/mpv
synced 2025-01-03 05:22:23 +00:00
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:
parent
146376549d
commit
d038772c8c
16
configure
vendored
16
configure
vendored
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user