mirror of https://git.ffmpeg.org/ffmpeg.git
lavc/pthread: do not re-define _GNU_SOURCE if already defined.
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
This commit is contained in:
parent
00ebac6dfd
commit
98dc25672f
|
@ -32,7 +32,9 @@
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
#if HAVE_SCHED_GETAFFINITY
|
#if HAVE_SCHED_GETAFFINITY
|
||||||
|
#ifndef _GNU_SOURCE
|
||||||
# define _GNU_SOURCE
|
# define _GNU_SOURCE
|
||||||
|
#endif
|
||||||
#include <sched.h>
|
#include <sched.h>
|
||||||
#endif
|
#endif
|
||||||
#if HAVE_GETPROCESSAFFINITYMASK
|
#if HAVE_GETPROCESSAFFINITYMASK
|
||||||
|
|
Loading…
Reference in New Issue