Commit 47e97057 authored by Sam Hocevar's avatar Sam Hocevar

* ./src/misc/cpu.c: we use void(*)(int) instead of sighandler_t because

    mingw32 doesn't know about sighandler_t.
parent 2fa6c9ce
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* cpu.c: CPU detection code * cpu.c: CPU detection code
***************************************************************************** *****************************************************************************
* Copyright (C) 1998-2002 VideoLAN * Copyright (C) 1998-2002 VideoLAN
* $Id: cpu.c,v 1.5 2002/08/19 11:13:45 sam Exp $ * $Id: cpu.c,v 1.6 2002/08/19 11:37:57 sam Exp $
* *
* Authors: Samuel Hocevar <sam@zoy.org> * Authors: Samuel Hocevar <sam@zoy.org>
* Christophe Massiot <massiot@via.ecp.fr> * Christophe Massiot <massiot@via.ecp.fr>
...@@ -130,7 +130,7 @@ static u32 Capabilities( vlc_object_t *p_this ) ...@@ -130,7 +130,7 @@ static u32 Capabilities( vlc_object_t *p_this )
: "cc" ); : "cc" );
# if defined( CAN_COMPILE_SSE ) || defined ( CAN_COMPILE_3DNOW ) # if defined( CAN_COMPILE_SSE ) || defined ( CAN_COMPILE_3DNOW )
sighandler_t pf_sigill = signal( SIGILL, SigHandler ); void (*pf_sigill) (int) = signal( SIGILL, SigHandler );
# endif # endif
i_capabilities |= CPU_CAPABILITY_FPU; i_capabilities |= CPU_CAPABILITY_FPU;
...@@ -261,7 +261,7 @@ static u32 Capabilities( vlc_object_t *p_this ) ...@@ -261,7 +261,7 @@ static u32 Capabilities( vlc_object_t *p_this )
#elif defined( __powerpc__ ) #elif defined( __powerpc__ )
# ifdef CAN_COMPILE_ALTIVEC # ifdef CAN_COMPILE_ALTIVEC
sighandler_t pf_sigill = signal( SIGILL, SigHandler ); void (*pf_sigill) (int) = signal( SIGILL, SigHandler );
i_capabilities |= CPU_CAPABILITY_FPU; i_capabilities |= CPU_CAPABILITY_FPU;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment