diff options
author | henry <henry@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-05-30 08:57:30 +0000 |
---|---|---|
committer | henry <henry@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-05-30 08:57:30 +0000 |
commit | c9e396b89868f21a6627c6de960473ea59541da5 (patch) | |
tree | 327d6e8168c85f63760edc65feab0d27747cdb5f /configure | |
parent | 881f0f083fa7c3888e178d137b2bfdf0168b0a9a (diff) |
- correct the argument in configure check for lrintf() to avoid a warning
- add -D_GNU_SOURCE where lrintf() is used, for the cases when -std=gnu99
isn't available
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15597 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2463,10 +2463,10 @@ echores "$_gnu99" echocheck "lrintf" cat > $TMPC << EOF #include <math.h> -int main(void) { long (*foo)(double); foo = lrintf; (void)(*foo)(0.0); return 0; } +int main(void) { long (*foo)(float); foo = lrintf; (void)(*foo)(0.0); return 0; } EOF _lrintf=no -cc_check $_opt_gnu99 $_ld_lm && _lrintf=yes +cc_check $_opt_gnu99 -D_GNU_SOURCE $_ld_lm && _lrintf=yes if test "$_lrintf" = yes ; then _def_lrintf="#define HAVE_LRINTF 1" else |