#include "dsputil_altivec.h"
-#ifdef SYS_DARWIN
+#ifdef __APPLE__
#include <sys/sysctl.h>
#elif __AMIGAOS4__
#include <exec/exec.h>
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)
{
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);
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);
return 1;
}
}
-#endif /* SYS_DARWIN */
+#endif /* __APPLE__ */
return 0;
#endif /* __AMIGAOS4__ */
}