[FFmpeg-devel] [PATCH] lavc/pthread: do not re-define _GNU_SOURCE if already defined.

Clément Bœsch ubitux at gmail.com
Mon Dec 24 00:55:07 CET 2012


On Mon, Dec 24, 2012 at 12:44:22AM +0100, Michael Niedermayer wrote:
> On Sun, Dec 23, 2012 at 10:51:15PM +0100, Clément Bœsch 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
> > ---
> >  libavcodec/pthread.c | 4 +++-
> >  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> LGTM
> 

Applied.

-- 
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20121224/fa27d9c9/attachment.asc>


More information about the ffmpeg-devel mailing list