1 From 5289783e0b07cfc3f92ee933261ca4c4acdca007 Mon Sep 17 00:00:00 2001
2 From: Bram Moolenaar <Bram@vim.org>
3 Date: Thu, 2 Jul 2020 22:50:37 +0200
4 Subject: [PATCH] patch 8.2.1119: configure fails with Xcode 12 beta
6 Problem: Configure fails with Xcode 12 beta.
7 Solution: use "return" instead of "exit()". (Nico Weber, closes #6381)
9 src/auto/configure | 4 ++--
10 src/configure.ac | 4 ++--
12 3 files changed, 6 insertions(+), 4 deletions(-)
14 --- a/src/auto/configure
15 +++ b/src/auto/configure
16 @@ -14005,8 +14005,8 @@ else
18 uint32_t nr1 = (uint32_t)-1;
19 uint32_t nr2 = (uint32_t)0xffffffffUL;
20 - if (sizeof(uint32_t) != 4 || nr1 != 0xffffffffUL || nr2 + 1 != 0) exit(1);
22 + if (sizeof(uint32_t) != 4 || nr1 != 0xffffffffUL || nr2 + 1 != 0) return 1;
26 if ac_fn_c_try_run "$LINENO"; then :
27 --- a/src/configure.ac
28 +++ b/src/configure.ac
29 @@ -4129,8 +4129,8 @@ AC_TRY_RUN([
31 uint32_t nr1 = (uint32_t)-1;
32 uint32_t nr2 = (uint32_t)0xffffffffUL;
33 - if (sizeof(uint32_t) != 4 || nr1 != 0xffffffffUL || nr2 + 1 != 0) exit(1);
35 + if (sizeof(uint32_t) != 4 || nr1 != 0xffffffffUL || nr2 + 1 != 0) return 1;
39 AC_MSG_ERROR([WRONG! uint32_t not defined correctly.]),