Mercurial > mplayer.hg
diff mp3lib/dct64_altivec.c @ 25327:a7b716b53e9f
Replace SYS_DARWIN conditional directive around gcc macros by __APPLE_CC__.
The macro definition depends on compiler capabilities, not OS features.
author | diego |
---|---|
date | Tue, 11 Dec 2007 20:07:18 +0000 |
parents | f155e65885e1 |
children | 6f0309e575e0 |
line wrap: on
line diff
--- a/mp3lib/dct64_altivec.c Tue Dec 11 19:56:40 2007 +0000 +++ b/mp3lib/dct64_altivec.c Tue Dec 11 20:07:18 2007 +0000 @@ -26,7 +26,7 @@ #define WORD_s2 0x18,0x19,0x1a,0x1b #define WORD_s3 0x1c,0x1d,0x1e,0x1f -#ifdef SYS_DARWIN +#ifdef __APPLE_CC__ #define vcprm(a,b,c,d) (const vector unsigned char)(WORD_ ## a, WORD_ ## b, WORD_ ## c, WORD_ ## d) #else #define vcprm(a,b,c,d) (const vector unsigned char){WORD_ ## a, WORD_ ## b, WORD_ ## c, WORD_ ## d} @@ -42,13 +42,13 @@ #define FLOAT_n -1. #define FLOAT_p 1. -#ifdef SYS_DARWIN +#ifdef __APPLE_CC__ #define vcii(a,b,c,d) (const vector float)(FLOAT_ ## a, FLOAT_ ## b, FLOAT_ ## c, FLOAT_ ## d) #else #define vcii(a,b,c,d) (const vector float){FLOAT_ ## a, FLOAT_ ## b, FLOAT_ ## c, FLOAT_ ## d} #endif -#ifdef SYS_DARWIN +#ifdef __APPLE_CC__ #define FOUROF(a) (a) #else #define FOUROF(a) {a,a,a,a}