changeset 36203:553275f5565f

Remove unnecessary condition. We already assume that we have sigaction available on Linux, e.g. in the cache code. Might fix Bugzilla bug #2141.
author reimar
date Tue, 04 Jun 2013 20:31:32 +0000
parents 53cb51bbc317
children 88c5a06d1db9
files cpudetect.c
diffstat 1 files changed, 0 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/cpudetect.c	Mon Jun 03 17:38:06 2013 +0000
+++ b/cpudetect.c	Tue Jun 04 20:31:32 2013 +0000
@@ -177,7 +177,6 @@
         mp_msg(MSGT_CPUDETECT,MSGL_V, gCpuCaps.hasSSE ? "yes.\n" : "no!\n" );
     }
 #elif defined(__linux__)
-#if defined(_POSIX_SOURCE)
     struct sigaction saved_sigill;
 
     /* Save the original signal handlers.
@@ -210,13 +209,6 @@
      */
     mp_msg(MSGT_CPUDETECT,MSGL_V, "Tests of OS support for SSE %s\n", gCpuCaps.hasSSE ? "passed." : "failed!" );
 #else
-    /* We can't use POSIX signal handling to test the availability of
-     * SSE, so we disable it by default.
-     */
-    mp_msg(MSGT_CPUDETECT,MSGL_WARN, "Cannot test OS support for SSE, disabling to be safe.\n" );
-    gCpuCaps.hasSSE=0;
-#endif /* _POSIX_SOURCE */
-#else
     /* Do nothing on other platforms for now.
      */
     mp_msg(MSGT_CPUDETECT,MSGL_WARN, "Cannot test OS support for SSE, leaving disabled.\n" );