Commit 71d6b468 authored by Laurent's avatar Laurent Committed by Michael Niedermayer

configure: fix gcc asm tests for MinGW GCC 4.6.2

Thanks to stackoverflow
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent f2b20b7a
......@@ -867,6 +867,7 @@ static void sighandler(int sig){
int func(void){
$code
}
int (*func_ptr)(void) = func;
int main(void){
signal(SIGILL, sighandler);
signal(SIGFPE, sighandler);
......@@ -874,7 +875,7 @@ int main(void){
#ifdef SIGBUS
signal(SIGBUS, sighandler);
#endif
return func();
return func_ptr();
}
EOF
}
......
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