1
0
forked from aniani/vim

patch 8.2.1119: configure fails with Xcode 12 beta

Problem:    Configure fails with Xcode 12 beta.
Solution:   use "return" instead of "exit()". (Nico Weber, closes #6381)
This commit is contained in:
Bram Moolenaar
2020-07-02 22:50:37 +02:00
parent 810af5ea46
commit 5289783e0b
3 changed files with 6 additions and 4 deletions

4
src/auto/configure vendored
View File

@@ -14143,8 +14143,8 @@ else
main() { main() {
uint32_t nr1 = (uint32_t)-1; uint32_t nr1 = (uint32_t)-1;
uint32_t nr2 = (uint32_t)0xffffffffUL; uint32_t nr2 = (uint32_t)0xffffffffUL;
if (sizeof(uint32_t) != 4 || nr1 != 0xffffffffUL || nr2 + 1 != 0) exit(1); if (sizeof(uint32_t) != 4 || nr1 != 0xffffffffUL || nr2 + 1 != 0) return 1;
exit(0); return 0;
} }
_ACEOF _ACEOF
if ac_fn_c_try_run "$LINENO"; then : if ac_fn_c_try_run "$LINENO"; then :

View File

@@ -4151,8 +4151,8 @@ AC_TRY_RUN([
main() { main() {
uint32_t nr1 = (uint32_t)-1; uint32_t nr1 = (uint32_t)-1;
uint32_t nr2 = (uint32_t)0xffffffffUL; uint32_t nr2 = (uint32_t)0xffffffffUL;
if (sizeof(uint32_t) != 4 || nr1 != 0xffffffffUL || nr2 + 1 != 0) exit(1); if (sizeof(uint32_t) != 4 || nr1 != 0xffffffffUL || nr2 + 1 != 0) return 1;
exit(0); return 0;
}], }],
AC_MSG_RESULT(ok), AC_MSG_RESULT(ok),
AC_MSG_ERROR([WRONG! uint32_t not defined correctly.]), AC_MSG_ERROR([WRONG! uint32_t not defined correctly.]),

View File

@@ -754,6 +754,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
1119,
/**/ /**/
1118, 1118,
/**/ /**/