diff options
author | Andre Pang <athp@users.sourceforge.net> | 2004-11-08 05:39:54 +0000 |
---|---|---|
committer | Andre Pang <athp@users.sourceforge.net> | 2004-11-08 05:39:54 +0000 |
commit | 6efe80f2b3c75b3782a1f408da0d53331a6eff73 (patch) | |
tree | 8272512590f320d97356f0cc26cb9d0864aa802f /src/libmpeg2/mpeg2_internal.h | |
parent | 5f9c438f2f1635ac8a3ca122791fe86a6fa8e782 (diff) | |
download | xine-lib-6efe80f2b3c75b3782a1f408da0d53331a6eff73.tar.gz xine-lib-6efe80f2b3c75b3782a1f408da0d53331a6eff73.tar.bz2 |
Fix compilation on Mac OS X with --disable-altivec (warning: compilation has been tested, whether it works hasn't been tested ...)
CVS patchset: 7109
CVS date: 2004/11/08 05:39:54
Diffstat (limited to 'src/libmpeg2/mpeg2_internal.h')
-rw-r--r-- | src/libmpeg2/mpeg2_internal.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libmpeg2/mpeg2_internal.h b/src/libmpeg2/mpeg2_internal.h index f279cd626..cb00a830b 100644 --- a/src/libmpeg2/mpeg2_internal.h +++ b/src/libmpeg2/mpeg2_internal.h @@ -243,10 +243,17 @@ void mpeg2_idct_mmx_init (void); void mpeg2_idct_copy_altivec (int16_t * block, uint8_t * dest, int stride); void mpeg2_idct_add_altivec (int16_t * block, uint8_t * dest, int stride); #else /* HOST_OS_DARWIN */ +# ifdef ENABLE_ALTIVEC void mpeg2_idct_copy_altivec (vector signed short * block, unsigned char * dest, int stride); void mpeg2_idct_add_altivec (vector signed short * block, unsigned char * dest, int stride); +# else /* ! ENABLE_ALTIVEC */ +void mpeg2_idct_copy_altivec (signed short * block, unsigned char * dest, + int stride); +void mpeg2_idct_add_altivec (signed short * block, unsigned char * dest, + int stride); +# endif /* ENABLE_ALTIVEC */ #endif /* HOST_OS_DARWIN */ void mpeg2_idct_altivec_init (void); |