mirror of
https://github.com/mpv-player/mpv
synced 2025-01-16 22:37:28 +01:00
Replace SYS_DARWIN conditional by the more correct __APPLE__.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25357 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
24af96f8cc
commit
a67cf40cfc
10
cpudetect.c
10
cpudetect.c
@ -446,7 +446,7 @@ static void check_os_katmai_support( void )
|
|||||||
}
|
}
|
||||||
#else /* ARCH_X86 */
|
#else /* ARCH_X86 */
|
||||||
|
|
||||||
#ifdef SYS_DARWIN
|
#ifdef __APPLE__
|
||||||
#include <sys/sysctl.h>
|
#include <sys/sysctl.h>
|
||||||
#else
|
#else
|
||||||
#ifndef __AMIGAOS4__
|
#ifndef __AMIGAOS4__
|
||||||
@ -467,7 +467,7 @@ static void sigill_handler (int sig)
|
|||||||
siglongjmp (jmpbuf, 1);
|
siglongjmp (jmpbuf, 1);
|
||||||
}
|
}
|
||||||
#endif //__AMIGAOS4__
|
#endif //__AMIGAOS4__
|
||||||
#endif
|
#endif /* __APPLE__ */
|
||||||
|
|
||||||
void GetCpuCaps( CpuCaps *caps)
|
void GetCpuCaps( CpuCaps *caps)
|
||||||
{
|
{
|
||||||
@ -483,7 +483,7 @@ void GetCpuCaps( CpuCaps *caps)
|
|||||||
caps->isX86=0;
|
caps->isX86=0;
|
||||||
caps->hasAltiVec = 0;
|
caps->hasAltiVec = 0;
|
||||||
#ifdef HAVE_ALTIVEC
|
#ifdef HAVE_ALTIVEC
|
||||||
#ifdef SYS_DARWIN
|
#ifdef __APPLE__
|
||||||
/*
|
/*
|
||||||
rip-off from ffmpeg altivec detection code.
|
rip-off from ffmpeg altivec detection code.
|
||||||
this code also appears on Apple's AltiVec pages.
|
this code also appears on Apple's AltiVec pages.
|
||||||
@ -500,7 +500,7 @@ void GetCpuCaps( CpuCaps *caps)
|
|||||||
if (has_vu != 0)
|
if (has_vu != 0)
|
||||||
caps->hasAltiVec = 1;
|
caps->hasAltiVec = 1;
|
||||||
}
|
}
|
||||||
#else /* SYS_DARWIN */
|
#else /* __APPLE__ */
|
||||||
#ifdef __AMIGAOS4__
|
#ifdef __AMIGAOS4__
|
||||||
ULONG result = 0;
|
ULONG result = 0;
|
||||||
|
|
||||||
@ -527,7 +527,7 @@ void GetCpuCaps( CpuCaps *caps)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif //__AMIGAOS4__
|
#endif //__AMIGAOS4__
|
||||||
#endif /* SYS_DARWIN */
|
#endif /* __APPLE__ */
|
||||||
mp_msg(MSGT_CPUDETECT,MSGL_INFO,"AltiVec %sfound\n", (caps->hasAltiVec ? "" : "not "));
|
mp_msg(MSGT_CPUDETECT,MSGL_INFO,"AltiVec %sfound\n", (caps->hasAltiVec ? "" : "not "));
|
||||||
#endif /* HAVE_ALTIVEC */
|
#endif /* HAVE_ALTIVEC */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user