aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2007-08-27 09:17:03 +0000
committerDiego Biurrun <diego@biurrun.de>2007-08-27 09:17:03 +0000
commitc97f54020d5d55511e28622551f13233bd8ceb56 (patch)
tree803e1d80d7073edddbcb66832074fb72032d7361 /libavcodec
parentd664a6255bd5f554068372a7caf732955b27eeb8 (diff)
downloadffmpeg-c97f54020d5d55511e28622551f13233bd8ceb56.tar.gz
Change SYS_DARWIN preprocessor checks to __APPLE__, they are specific
to Mac OS X rather than to Darwin. Originally committed as revision 10247 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/ppc/dsputil_altivec.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/libavcodec/ppc/dsputil_altivec.c b/libavcodec/ppc/dsputil_altivec.c
index 835d8af3dd..e95e1fa5de 100644
--- a/libavcodec/ppc/dsputil_altivec.c
+++ b/libavcodec/ppc/dsputil_altivec.c
@@ -26,7 +26,7 @@
#include "dsputil_altivec.h"
-#ifdef SYS_DARWIN
+#ifdef __APPLE__
#include <sys/sysctl.h>
#elif __AMIGAOS4__
#include <exec/exec.h>
@@ -49,7 +49,7 @@ static void sigill_handler (int sig)
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 @@ int has_altivec(void)
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 @@ int has_altivec(void)
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 @@ int has_altivec(void)
return 1;
}
}
-#endif /* SYS_DARWIN */
+#endif /* __APPLE__ */
return 0;
#endif /* __AMIGAOS4__ */
}