[FFmpeg-cvslog] configure: fix gcc asm tests for MinGW GCC 4.6.2

Laurent git at videolan.org
Thu Feb 9 18:04:27 CET 2012


ffmpeg | branch: master | Laurent <laurent.aml at gmail.com> | Thu Feb  9 17:49:22 2012 +0100| [71d6b46849ca1c04d5ec7b74c9e48bdce68d5ebe] | committer: Michael Niedermayer

configure: fix gcc asm tests for MinGW GCC 4.6.2

Thanks to stackoverflow
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=71d6b46849ca1c04d5ec7b74c9e48bdce68d5ebe
---

 configure |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/configure b/configure
index 3ae7a55..525092d 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
 }



More information about the ffmpeg-cvslog mailing list