Mercurial > mplayer.hg
diff configure @ 15596:667c78f0fc60
- 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
author | henry |
---|---|
date | Mon, 30 May 2005 08:57:30 +0000 |
parents | 1c18214c932b |
children | 5c23a21cc78c |
line wrap: on
line diff
--- a/configure Mon May 30 08:45:21 2005 +0000 +++ b/configure Mon May 30 08:57:30 2005 +0000 @@ -2463,10 +2463,10 @@ 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