[FFmpeg-devel] [PATCH] cmdutils: move "#undef main" from ffplay.c to cmdutils.h

Michael Niedermayer michaelni at gmx.at
Fri Jun 3 15:40:54 CEST 2011


On Fri, Jun 03, 2011 at 01:36:54PM +0200, Stefano Sabatini wrote:
> From: Carl Eugen Hoyos <cehoyos at ag.or.at>
> 
> On Windows/MinGW the SDL cflags re-define the main() function
> function, which results in a linking error if not reverted.
> 
> Since the addition of the SDL output device, SDL cflags are used also
> for compiling ffmpeg and ffprobe, so we need to move this trick from
> ffplay.c to a common header.
> 
> Fix trac issue #256.
> ---
>  cmdutils.h |    4 ++++
>  ffplay.c   |    6 +-----
>  2 files changed, 5 insertions(+), 5 deletions(-)

ok if tested

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

It is dangerous to be right in matters on which the established authorities
are wrong. -- Voltaire
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20110603/7896ccb5/attachment.asc>


More information about the ffmpeg-devel mailing list