Skip to content
Snippets Groups Projects
Commit f32adb22 authored by Måns Rullgård's avatar Måns Rullgård
Browse files

move lrintf() check before external lib checks to prevent runtime

errors from these interfering with lrintf() test

Originally committed as revision 9364 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 7a68f7fa
No related branches found
No related tags found
No related merge requests found
...@@ -1561,6 +1561,13 @@ for thread in $THREADS_LIST; do ...@@ -1561,6 +1561,13 @@ for thread in $THREADS_LIST; do
fi fi
done done
# test for lrintf in math.h
check_exec <<EOF && lrintf=yes || lrintf=no
#define _ISOC9X_SOURCE 1
#include <math.h>
int main( void ) { return (lrintf(3.999f) > 0)?0:1; }
EOF
enabled_any libamr_nb libamr_wb && enable libamr enabled_any libamr_nb libamr_wb && enable libamr
# these are off by default, so fail if requested and not available # these are off by default, so fail if requested and not available
...@@ -1581,13 +1588,6 @@ enabled libfaac && require2 libfaac "stdint.h faac.h" faacEncGetVersion -lfaa ...@@ -1581,13 +1588,6 @@ enabled libfaac && require2 libfaac "stdint.h faac.h" faacEncGetVersion -lfaa
enabled libfaad && require2 libfaad faad.h faacDecOpen -lfaad enabled libfaad && require2 libfaad faad.h faacDecOpen -lfaad
enabled avisynth && require2 vfw32 "windows.h vfw.h" AVIFileInit -lvfw32 enabled avisynth && require2 vfw32 "windows.h vfw.h" AVIFileInit -lvfw32
# test for lrintf in math.h
check_exec <<EOF && lrintf=yes || lrintf=no
#define _ISOC9X_SOURCE 1
#include <math.h>
int main( void ) { return (lrintf(3.999f) > 0)?0:1; }
EOF
_restrict= _restrict=
for restrict_keyword in restrict __restrict__ __restrict; do for restrict_keyword in restrict __restrict__ __restrict; do
check_cc <<EOF && _restrict=$restrict_keyword && break check_cc <<EOF && _restrict=$restrict_keyword && break
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment