[SCM] libav/experimental: replace -D_GNU_SOURCE with -D_ISOC9X_SOURCE to avoid accidental use of gnu extensions

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 15:49:05 UTC 2013


The following commit has been merged in the experimental branch:
commit 4b65d88fd7a19a75215de74d7c6e2f664e40df26
Author: Måns Rullgård <mans at mansr.com>
Date:   Thu Jul 13 23:10:01 2006 +0000

    replace -D_GNU_SOURCE with -D_ISOC9X_SOURCE to avoid accidental use
    of gnu extensions
    
    Originally committed as revision 5733 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/Makefile b/Makefile
index 151f50e..42e4d41 100644
--- a/Makefile
+++ b/Makefile
@@ -8,7 +8,7 @@ VPATH=$(SRC_PATH)
 
 CFLAGS=$(OPTFLAGS) -I. -I$(SRC_PATH) -I$(SRC_PATH)/libavutil \
        -I$(SRC_PATH)/libavcodec -I$(SRC_PATH)/libavformat \
-       -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE
+       -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE
 LDFLAGS+= -g
 
 MANPAGES=doc/ffmpeg.1
diff --git a/libavcodec/Makefile b/libavcodec/Makefile
index 17c1680..33cdc07 100644
--- a/libavcodec/Makefile
+++ b/libavcodec/Makefile
@@ -6,7 +6,7 @@ include ../config.mak
 
 # NOTE: -I.. is needed to include config.h
 CFLAGS=$(OPTFLAGS) -DHAVE_AV_CONFIG_H -I.. -I$(SRC_PATH)/libavutil \
-       -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE $(AMR_CFLAGS)
+       -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE $(AMR_CFLAGS)
 
 OBJS= bitstream.o utils.o mem.o allcodecs.o \
       mpegvideo.o jrevdct.o jfdctfst.o jfdctint.o\
diff --git a/libavformat/Makefile b/libavformat/Makefile
index e512e24..00141e8 100644
--- a/libavformat/Makefile
+++ b/libavformat/Makefile
@@ -6,7 +6,7 @@ include ../config.mak
 
 CFLAGS=$(OPTFLAGS) -I.. -I$(SRC_PATH) -I$(SRC_PATH)/libavutil \
        -I$(SRC_PATH)/libavcodec -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 \
-       -D_LARGEFILE_SOURCE -D_GNU_SOURCE
+       -D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE
 
 OBJS= utils.o cutils.o os_support.o allformats.o
 CPPOBJS=
diff --git a/libavutil/Makefile b/libavutil/Makefile
index 9870cfb..18acf2c 100644
--- a/libavutil/Makefile
+++ b/libavutil/Makefile
@@ -5,7 +5,7 @@ include ../config.mak
 
 # NOTE: -I.. is needed to include config.h
 CFLAGS=$(OPTFLAGS) -DHAVE_AV_CONFIG_H -DBUILD_AVUTIL -I.. \
-       -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE
+       -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE
 
 OBJS= mathematics.o \
       rational.o \

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list