-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upstream backport. Signed-off-by: Rosen Penev <rosenp@gmail.com>
- Loading branch information
Showing
2 changed files
with
40 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
From 5289783e0b07cfc3f92ee933261ca4c4acdca007 Mon Sep 17 00:00:00 2001 | ||
From: Bram Moolenaar <Bram@vim.org> | ||
Date: Thu, 2 Jul 2020 22:50:37 +0200 | ||
Subject: [PATCH] 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) | ||
--- | ||
src/auto/configure | 4 ++-- | ||
src/configure.ac | 4 ++-- | ||
src/version.c | 2 ++ | ||
3 files changed, 6 insertions(+), 4 deletions(-) | ||
|
||
--- a/src/auto/configure | ||
+++ b/src/auto/configure | ||
@@ -14005,8 +14005,8 @@ else | ||
main() { | ||
uint32_t nr1 = (uint32_t)-1; | ||
uint32_t nr2 = (uint32_t)0xffffffffUL; | ||
- if (sizeof(uint32_t) != 4 || nr1 != 0xffffffffUL || nr2 + 1 != 0) exit(1); | ||
- exit(0); | ||
+ if (sizeof(uint32_t) != 4 || nr1 != 0xffffffffUL || nr2 + 1 != 0) return 1; | ||
+ return 0; | ||
} | ||
_ACEOF | ||
if ac_fn_c_try_run "$LINENO"; then : | ||
--- a/src/configure.ac | ||
+++ b/src/configure.ac | ||
@@ -4129,8 +4129,8 @@ AC_TRY_RUN([ | ||
main() { | ||
uint32_t nr1 = (uint32_t)-1; | ||
uint32_t nr2 = (uint32_t)0xffffffffUL; | ||
- if (sizeof(uint32_t) != 4 || nr1 != 0xffffffffUL || nr2 + 1 != 0) exit(1); | ||
- exit(0); | ||
+ if (sizeof(uint32_t) != 4 || nr1 != 0xffffffffUL || nr2 + 1 != 0) return 1; | ||
+ return 0; | ||
}], | ||
AC_MSG_RESULT(ok), | ||
AC_MSG_ERROR([WRONG! uint32_t not defined correctly.]), |