diff options
author | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-07-08 16:11:58 +0000 |
---|---|---|
committer | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-07-08 16:11:58 +0000 |
commit | 86f66849c1ef05527a88268e4f520c8d1383a959 (patch) | |
tree | 4696f098fd163a9c9d0750de878fcb765f46cef0 /configure | |
parent | 3e1c882458f75e963965a6a34c6702ac88d533d3 (diff) | |
download | mpv-86f66849c1ef05527a88268e4f520c8d1383a959.tar.bz2 mpv-86f66849c1ef05527a88268e4f520c8d1383a959.tar.xz |
Add -std=gnu99 to gcc CFLAGS if supported. This sets appropriate #defines to
avoid a bunch of implicit declaration warnings in (g)libc headers that define
certain functions conditional to those #defines.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27240 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -7542,6 +7542,7 @@ cat > $TMPC << EOF int main(void) { return 0; } EOF if test "$cc_vendor" = "gnu" ; then + cc_check -std=gnu99 && CFLAGS="-std=gnu99 $CFLAGS" cc_check -Wdeclaration-after-statement && CFLAGS="-Wdeclaration-after-statement $CFLAGS" cc_check -Wno-pointer-sign && CFLAGS="-Wno-pointer-sign $CFLAGS" cc_check -Wdisabled-optimization && CFLAGS="-Wdisabled-optimization $CFLAGS" |