Mercurial > mplayer.hg
changeset 6658:64cf429bd7eb
detectin of __restrict keyword - patch by Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
author | arpi |
---|---|
date | Sat, 06 Jul 2002 15:20:10 +0000 |
parents | 766b6fb28ebf |
children | 715d93d492c3 |
files | configure |
diffstat | 1 files changed, 16 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/configure Sat Jul 06 15:19:08 2002 +0000 +++ b/configure Sat Jul 06 15:20:10 2002 +0000 @@ -1430,6 +1430,19 @@ 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 @@ /* Runtime Cpudetection */ $_def_runtime_cpudetection +/* "restrict" keyword */ +#define restrict $_def_restrict_keyword + #define PREFIX "$_prefix" /* define this to use simple idct with patched libavcodec */