# HG changeset patch # User diego # Date 1188206223 0 # Node ID deadd90d994fb9122cf8c079da95b7cb0305d7d5 # Parent 5b80d560cdca329636e854e97101ed0ff3fde488 Change SYS_DARWIN preprocessor checks to __APPLE__, they are specific to Mac OS X rather than to Darwin. diff -r 5b80d560cdca -r deadd90d994f ppc/dsputil_altivec.c --- a/ppc/dsputil_altivec.c Sun Aug 26 22:38:57 2007 +0000 +++ b/ppc/dsputil_altivec.c Mon Aug 27 09:17:03 2007 +0000 @@ -26,7 +26,7 @@ #include "dsputil_altivec.h" -#ifdef SYS_DARWIN +#ifdef __APPLE__ #include #elif __AMIGAOS4__ #include @@ -49,7 +49,7 @@ canjump = 0; siglongjmp (jmpbuf, 1); } -#endif /* SYS_DARWIN */ +#endif /* __APPLE__ */ int sad16_x2_altivec(void *v, uint8_t *pix1, uint8_t *pix2, int line_size, int h) { @@ -1428,7 +1428,7 @@ return 0; #else /* __AMIGAOS4__ */ -#ifdef SYS_DARWIN +#ifdef __APPLE__ int sels[2] = {CTL_HW, HW_VECTORUNIT}; int has_vu = 0; size_t len = sizeof(has_vu); @@ -1437,8 +1437,8 @@ err = sysctl(sels, 2, &has_vu, &len, NULL, 0); if (err == 0) return (has_vu != 0); -#else /* SYS_DARWIN */ -/* no Darwin, do it the brute-force way */ +#else /* __APPLE__ */ +/* no Mac OS X, do it the brute-force way */ /* this is borrowed from the libmpeg2 library */ { signal (SIGILL, sigill_handler); @@ -1456,7 +1456,7 @@ return 1; } } -#endif /* SYS_DARWIN */ +#endif /* __APPLE__ */ return 0; #endif /* __AMIGAOS4__ */ }