mirror of
https://gitee.com/openharmony/third_party_libsnd
synced 2025-04-01 13:01:41 +00:00
Add -std=gnu99 to CFLAGS if the compiler supports it.
This commit is contained in:
parent
403c5b55d9
commit
dfa8b4998b
@ -3,6 +3,8 @@
|
||||
* configure.ac
|
||||
Make -Wdeclaration-after-statement work with --enable-gcc-werror configure
|
||||
option.
|
||||
Add -std=gnu99 (C99 plus posix style stuff like gmtime_r) to CFLAGS if the
|
||||
compiler supports it.
|
||||
|
||||
2005-09-23 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
|
||||
|
||||
|
@ -395,6 +395,8 @@ else
|
||||
# Now use the information from the checking stage.
|
||||
|
||||
if test x$ac_cv_c_compiler_gnu = xyes ; then
|
||||
AC_ADD_CFLAGS(-std=gnu99)
|
||||
|
||||
CFLAGS="$CFLAGS -W -Wall"
|
||||
|
||||
AC_ADD_CFLAGS(-Wdeclaration-after-statement)
|
||||
|
Loading…
x
Reference in New Issue
Block a user