aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent <laurent.aml@gmail.com>2012-02-09 17:49:22 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-02-09 17:49:22 +0100
commit71d6b46849ca1c04d5ec7b74c9e48bdce68d5ebe (patch)
tree116fe2b321672ee5a937769f6c24923377ed56ba
parentf2b20b7a8b6fcbcd8cc669f5211e4e2ed7d8e9f3 (diff)
downloadffmpeg-71d6b46849ca1c04d5ec7b74c9e48bdce68d5ebe.tar.gz
configure: fix gcc asm tests for MinGW GCC 4.6.2
Thanks to stackoverflow Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rwxr-xr-xconfigure3
1 files changed, 2 insertions, 1 deletions
diff --git a/configure b/configure
index 3ae7a55195..525092d013 100755
--- 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
}