Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-09-24 15:24:00 +0400
committerMichael Niedermayer <michaelni@gmx.at>2012-09-24 15:41:48 +0400
commit874b9dcc4be78847e488df33aad51752a8bebc2e (patch)
treefdbbfba5944915e710a036490fbb398d6e658c12
parentc75b611a3853acc4cd05c37d1f6f72e67fb7b8eb (diff)
ppc/cpu: make linux 32bit specific altivec detection depend on __linux__
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavutil/ppc/cpu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/ppc/cpu.c b/libavutil/ppc/cpu.c
index fc38be6f65..20837dae11 100644
--- a/libavutil/ppc/cpu.c
+++ b/libavutil/ppc/cpu.c
@@ -61,7 +61,7 @@ int ff_get_cpu_flags_ppc(void)
if (err == 0)
return has_vu ? AV_CPU_FLAG_ALTIVEC : 0;
return 0;
-#elif CONFIG_RUNTIME_CPUDETECT
+#elif CONFIG_RUNTIME_CPUDETECT && defined(__linux__) && !ARCH_PPC64
int proc_ver;
// Support of mfspr PVR emulation added in Linux 2.6.17.
__asm__ volatile("mfspr %0, 287" : "=r" (proc_ver));