mirror of
https://github.com/moparisthebest/curl
synced 2025-02-28 17:31:46 -05:00
On Linux Intel's icc uses gcc's header files, so
we select ANSI C89 dialect plus GNU extensions.
This commit is contained in:
parent
d7e406e020
commit
f30959c6bd
@ -226,10 +226,9 @@ AC_MSG_CHECKING([whether we are using the Intel C compiler])
|
|||||||
CURL_CHECK_DEF([__INTEL_COMPILER], [], [silent])
|
CURL_CHECK_DEF([__INTEL_COMPILER], [], [silent])
|
||||||
if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then
|
if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then
|
||||||
AC_MSG_RESULT([yes])
|
AC_MSG_RESULT([yes])
|
||||||
dnl Select strict ANSI C conformance
|
dnl On Linux this compiler uses gcc's header files, so
|
||||||
CPPFLAGS="$CPPFLAGS -strict-ansi"
|
dnl we select ANSI C89 dialect plus GNU extensions.
|
||||||
dnl Select ANSI C dialect
|
CPPFLAGS="$CPPFLAGS -std=gnu89"
|
||||||
CPPFLAGS="$CPPFLAGS -std=c89 -D__STRICT_ANSI__"
|
|
||||||
dnl Change some warnings into errors
|
dnl Change some warnings into errors
|
||||||
dnl #140: too many arguments in function call
|
dnl #140: too many arguments in function call
|
||||||
dnl #147: declaration is incompatible with 'previous one'
|
dnl #147: declaration is incompatible with 'previous one'
|
||||||
|
@ -300,10 +300,9 @@ AC_MSG_CHECKING([whether we are using the Intel C compiler])
|
|||||||
CURL_CHECK_DEF([__INTEL_COMPILER], [], [silent])
|
CURL_CHECK_DEF([__INTEL_COMPILER], [], [silent])
|
||||||
if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then
|
if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then
|
||||||
AC_MSG_RESULT([yes])
|
AC_MSG_RESULT([yes])
|
||||||
dnl Select strict ANSI C conformance
|
dnl On Linux this compiler uses gcc's header files, so
|
||||||
CPPFLAGS="$CPPFLAGS -strict-ansi"
|
dnl we select ANSI C89 dialect plus GNU extensions.
|
||||||
dnl Select ANSI C dialect
|
CPPFLAGS="$CPPFLAGS -std=gnu89"
|
||||||
CPPFLAGS="$CPPFLAGS -std=c89 -D__STRICT_ANSI__"
|
|
||||||
dnl Change some warnings into errors
|
dnl Change some warnings into errors
|
||||||
dnl #140: too many arguments in function call
|
dnl #140: too many arguments in function call
|
||||||
dnl #147: declaration is incompatible with 'previous one'
|
dnl #147: declaration is incompatible with 'previous one'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user