Mercurial > mplayer.hg
changeset 24439:680bc9411ecf
Do not check for X86_FXSR_MAGIC define, it is missing in newer
distribution/kernel headers.
author | reimar |
---|---|
date | Fri, 14 Sep 2007 13:49:28 +0000 |
parents | 999a0a1e4748 |
children | 2ce49d0d99a1 |
files | cpudetect.c |
diffstat | 1 files changed, 4 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/cpudetect.c Fri Sep 14 13:43:06 2007 +0000 +++ b/cpudetect.c Fri Sep 14 13:49:28 2007 +0000 @@ -37,7 +37,6 @@ #include <proto/exec.h> #endif -//#define X86_FXSR_MAGIC /* Thanks to the FreeBSD project for some of this cpuid code, and * help understanding how to use it. Thanks to the Mesa * team for SSE support detection and more cpu detect code. @@ -286,7 +285,7 @@ #undef CPUID_STEPPING -#if defined(__linux__) && defined(_POSIX_SOURCE) && defined(X86_FXSR_MAGIC) +#if defined(__linux__) && defined(_POSIX_SOURCE) static void sigill_handler_sse( int signal, struct sigcontext sc ) { mp_msg(MSGT_CPUDETECT,MSGL_V, "SIGILL, " ); @@ -305,7 +304,7 @@ gCpuCaps.hasSSE=0; } -#endif /* __linux__ && _POSIX_SOURCE && X86_FXSR_MAGIC */ +#endif /* __linux__ && _POSIX_SOURCE */ #ifdef WIN32 LONG CALLBACK win32_sig_handler_sse(EXCEPTION_POINTERS* ep) @@ -391,7 +390,7 @@ else mp_msg(MSGT_CPUDETECT,MSGL_V, "no!\n" ); } #elif defined(__linux__) -#if defined(_POSIX_SOURCE) && defined(X86_FXSR_MAGIC) +#if defined(_POSIX_SOURCE) struct sigaction saved_sigill; struct sigaction saved_sigfpe; @@ -438,7 +437,7 @@ */ mp_msg(MSGT_CPUDETECT,MSGL_WARN, "Cannot test OS support for SSE, disabling to be safe.\n" ); gCpuCaps.hasSSE=0; -#endif /* _POSIX_SOURCE && X86_FXSR_MAGIC */ +#endif /* _POSIX_SOURCE */ #else /* Do nothing on other platforms for now. */