mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-06-19 19:03:00 +02:00
Move -D_ISOC9X_SOURCE to configure so its available to all tests.
Originally committed as revision 14729 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
+2
-2
@@ -19,7 +19,7 @@ endif
|
|||||||
ALLFFLIBS = avcodec avdevice avfilter avformat avutil postproc swscale
|
ALLFFLIBS = avcodec avdevice avfilter avformat avutil postproc swscale
|
||||||
|
|
||||||
CFLAGS := -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \
|
CFLAGS := -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \
|
||||||
-D_ISOC9X_SOURCE -I$(BUILD_ROOT_REL) -I$(SRC_PATH) $(OPTFLAGS)
|
-I$(BUILD_ROOT_REL) -I$(SRC_PATH) $(OPTFLAGS)
|
||||||
|
|
||||||
%.o: %.c
|
%.o: %.c
|
||||||
$(CC) $(CFLAGS) $(LIBOBJFLAGS) -c -o $@ $<
|
$(CC) $(CFLAGS) $(LIBOBJFLAGS) -c -o $@ $<
|
||||||
@@ -116,4 +116,4 @@ $(eval $(RULES))
|
|||||||
|
|
||||||
tests: $(TESTS)
|
tests: $(TESTS)
|
||||||
|
|
||||||
-include $(DEPS)
|
#-include $(DEPS)
|
||||||
|
|||||||
@@ -974,6 +974,7 @@ enable stripping
|
|||||||
vhook="default"
|
vhook="default"
|
||||||
|
|
||||||
# build settings
|
# build settings
|
||||||
|
add_cflags '-D_ISOC9X_SOURCE'
|
||||||
SHFLAGS='-shared -Wl,-soname,$$(@F)'
|
SHFLAGS='-shared -Wl,-soname,$$(@F)'
|
||||||
VHOOKSHFLAGS='$(SHFLAGS)'
|
VHOOKSHFLAGS='$(SHFLAGS)'
|
||||||
FFSERVERLDFLAGS=-Wl,-E
|
FFSERVERLDFLAGS=-Wl,-E
|
||||||
@@ -1689,7 +1690,6 @@ check_lib math.h sin -lm
|
|||||||
# test for C99 functions in math.h
|
# test for C99 functions in math.h
|
||||||
for func in llrint lrint lrintf round roundf; do
|
for func in llrint lrint lrintf round roundf; do
|
||||||
check_exec <<EOF && enable $func || disable $func
|
check_exec <<EOF && enable $func || disable $func
|
||||||
#define _ISOC9X_SOURCE 1
|
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
int main(void) { return ($func(3.999f) > 0)?0:1; }
|
int main(void) { return ($func(3.999f) > 0)?0:1; }
|
||||||
EOF
|
EOF
|
||||||
|
|||||||
Reference in New Issue
Block a user