[FFmpeg-devel] [PATCH] lavc/pthread: do not re-define _GNU_SOURCE if already defined.
Reimar Döffinger
Reimar.Doeffinger at gmx.de
Mon Dec 24 08:03:08 CET 2012
On 23 Dec 2012, at 22:51, Clément Bœsch <ubitux at gmail.com> wrote:
> This fixes the following warning with GCC:
> libavcodec/pthread.c:35:0: warning: _GNU_SOURCE redefined [enabled by default]
> <command-line>::0: note: this is the location of the previous definition
>
> The reason of the presence of this flag is:
> % pkg-config --cflags sdl
> -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL
Nothing against the patch, but:
I was told SDL fixed that, it is a seriously bad idea for them to have that there.
If this still happens with recent SDL versions, IMHO it should be reported as a bug.
More information about the ffmpeg-devel
mailing list