changeset 10115:0b76ca7e07b5 libavcodec

One declaration of mm_flags is enough
author mru
date Sat, 29 Aug 2009 16:55:55 +0000
parents 8b9fc0c8f1cc
children 6cade2cdd63b
files dsputil.h
diffstat 1 files changed, 1 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/dsputil.h	Sat Aug 29 16:55:50 2009 +0000
+++ b/dsputil.h	Sat Aug 29 16:55:55 2009 +0000
@@ -598,6 +598,7 @@
 /* should be defined by architectures supporting
    one or more MultiMedia extension */
 int mm_support(void);
+extern int mm_flags;
 
 void dsputil_init_alpha(DSPContext* c, AVCodecContext *avctx);
 void dsputil_init_arm(DSPContext* c, AVCodecContext *avctx);
@@ -616,8 +617,6 @@
 
 #undef emms_c
 
-extern int mm_flags;
-
 static inline void emms(void)
 {
     __asm__ volatile ("emms;":::"memory");
@@ -632,16 +631,12 @@
 
 #elif ARCH_ARM
 
-extern int mm_flags;
-
 #if HAVE_NEON
 #   define STRIDE_ALIGN 16
 #endif
 
 #elif ARCH_PPC
 
-extern int mm_flags;
-
 #define STRIDE_ALIGN 16
 
 #elif HAVE_MMI