summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-07-06 15:20:10 +0000
committerarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-07-06 15:20:10 +0000
commitd038772c8c9a9c553ad907761ff3bda204c61c57 (patch)
tree05ff9a047d434cc1ba42274e7e2959637b500763 /configure
parent146376549dec310eb47dc9fdb282c54f0a36e82a (diff)
downloadmpv-d038772c8c9a9c553ad907761ff3bda204c61c57.tar.bz2
mpv-d038772c8c9a9c553ad907761ff3bda204c61c57.tar.xz
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
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure16
1 files changed, 16 insertions, 0 deletions
diff --git a/configure b/configure
index 3a300fc3f7..7efc255a48 100755
--- a/configure
+++ b/configure
@@ -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 */