From fec1f475016b9eb1fb337cf5366bd87e9fa4a8bb Mon Sep 17 00:00:00 2001 From: Karl Blomster Date: Mon, 14 Jun 2010 21:11:01 +0000 Subject: [PATCH] Make configure not break on testing for newer ffmpeg's by hardcoding a #define into the test program. This is pretty dumb but I don't know about autotools to fix it properly and it's not like it matters. Why is it compiling C code as extern "C" with a C++ compiler, anyway? Originally committed to SVN as r4516. --- aegisub/configure.in | 1 + 1 file changed, 1 insertion(+) diff --git a/aegisub/configure.in b/aegisub/configure.in index 40ad10ccb..1fc5ffbfa 100644 --- a/aegisub/configure.in +++ b/aegisub/configure.in @@ -675,6 +675,7 @@ fi if test "$with_ffmpeg" != "no" && test "$enable_old_ffmpeg" != "yes"; then AC_AGI_COMPILE([FFMPEG], [ffmpeg], [$LIBSWSCALE_CFLAGS $LIBAVCODEC_CFLAGS $LIBAVFORMAT_CFLAGS $LIBAVUTIL_CFLAGS], [$LIBSWSCALE_LIBS $LIBAVCODEC_LIBS $LIBAVFORMAT_LIBS $LIBAVUTIL_LIBS],[ +#define __STDC_CONSTANT_MACROS extern "C" { #include #include