configure: fix gcc asm tests for MinGW GCC 4.6.2
authorLaurent <laurent.aml@gmail.com>
Thu, 9 Feb 2012 16:49:22 +0000 (17:49 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 9 Feb 2012 16:49:22 +0000 (17:49 +0100)
Thanks to stackoverflow
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
configure

index 3ae7a55..525092d 100755 (executable)
--- a/configure
+++ b/configure
@@ -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
 }