summaryrefslogtreecommitdiffstats
path: root/Utilities
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-04-07 11:47:49 (GMT)
committerBrad King <brad.king@kitware.com>2020-04-07 11:49:50 (GMT)
commit630e501f8bb0a1d2e54e799a0c7e27b9264ecf86 (patch)
treec13648f512383ea1e941e4778607edee2289a08c /Utilities
parent02a28f1d4451839abfc38e0c437cda438811172f (diff)
downloadCMake-630e501f8bb0a1d2e54e799a0c7e27b9264ecf86.zip
CMake-630e501f8bb0a1d2e54e799a0c7e27b9264ecf86.tar.gz
CMake-630e501f8bb0a1d2e54e799a0c7e27b9264ecf86.tar.bz2
libuv: Restore compilation on Apple i386 architecture
libuv upstream commit `2475296c` (build: make code compilable for iOS on Xcode, 2020-01-18, v1.35.0~47) added a `defined(TARGET_OS_IPHONE)` preprocessor condition, but `TARGET_OS_IPHONE` is always defined on Apple to either 0 or 1.
Diffstat (limited to 'Utilities')
-rw-r--r--Utilities/cmlibuv/src/unix/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Utilities/cmlibuv/src/unix/core.c b/Utilities/cmlibuv/src/unix/core.c
index d1e9baa..898ecd6 100644
--- a/Utilities/cmlibuv/src/unix/core.c
+++ b/Utilities/cmlibuv/src/unix/core.c
@@ -521,7 +521,7 @@ int uv__close_nocancel(int fd) {
#if defined(__APPLE__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdollar-in-identifier-extension"
-#if defined(__LP64__) || defined(TARGET_OS_IPHONE)
+#if defined(__LP64__) || TARGET_OS_IPHONE
extern int close$NOCANCEL(int);
return close$NOCANCEL(fd);
#else