# HG changeset patch # User reimar # Date 1189777768 0 # Node ID 680bc9411ecfcc85e146cbc41910fd85091b4bb0 # Parent 999a0a1e47485b64b4fb4911cc0bfa11f3dbeac4 Do not check for X86_FXSR_MAGIC define, it is missing in newer distribution/kernel headers. diff -r 999a0a1e4748 -r 680bc9411ecf cpudetect.c --- 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 #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. */