mirror of
git://git.sv.gnu.org/autoconf
synced 2025-03-31 15:00:26 +08:00
(AC_FUNC_MEMCMP): Remove int main () {' and the trailing
}',
since AC_LANG_PROGRAM provides them.
This commit is contained in:
parent
dff7a1b5c3
commit
acb55c4349
@ -733,9 +733,6 @@ fi
|
||||
AC_DEFUN([AC_FUNC_MEMCMP],
|
||||
[AC_CACHE_CHECK([for working memcmp], ac_cv_func_memcmp_working,
|
||||
[AC_RUN_IFELSE([AC_LANG_PROGRAM([], [[
|
||||
int
|
||||
main ()
|
||||
{
|
||||
/* Some versions of memcmp are not 8-bit clean. */
|
||||
char c0 = 0x40, c1 = 0x80, c2 = 0x81;
|
||||
if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
|
||||
@ -759,7 +756,7 @@ main ()
|
||||
}
|
||||
exit (0);
|
||||
}
|
||||
}]])],
|
||||
]])],
|
||||
[ac_cv_func_memcmp_working=yes],
|
||||
[ac_cv_func_memcmp_working=no],
|
||||
[ac_cv_func_memcmp_working=no])])
|
||||
|
@ -733,9 +733,6 @@ fi
|
||||
AC_DEFUN([AC_FUNC_MEMCMP],
|
||||
[AC_CACHE_CHECK([for working memcmp], ac_cv_func_memcmp_working,
|
||||
[AC_RUN_IFELSE([AC_LANG_PROGRAM([], [[
|
||||
int
|
||||
main ()
|
||||
{
|
||||
/* Some versions of memcmp are not 8-bit clean. */
|
||||
char c0 = 0x40, c1 = 0x80, c2 = 0x81;
|
||||
if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
|
||||
@ -759,7 +756,7 @@ main ()
|
||||
}
|
||||
exit (0);
|
||||
}
|
||||
}]])],
|
||||
]])],
|
||||
[ac_cv_func_memcmp_working=yes],
|
||||
[ac_cv_func_memcmp_working=no],
|
||||
[ac_cv_func_memcmp_working=no])])
|
||||
|
Loading…
x
Reference in New Issue
Block a user