From 5c9a7a11374f110c5268c3ef6948551ff85b24e2 Mon Sep 17 00:00:00 2001 From: ann0see <20726856+ann0see@users.noreply.github.com> Date: Mon, 26 Aug 2024 21:27:12 +0200 Subject: [PATCH] iOS: Fix GetOperatingSystem() to return correct OS --- src/util.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/util.h b/src/util.h index 66c70294ee..2e833b280a 100644 --- a/src/util.h +++ b/src/util.h @@ -1098,8 +1098,10 @@ class COSUtil { #ifdef _WIN32 return OT_WINDOWS; -#elif defined( __APPLE__ ) || defined( __MACOSX ) +#elif defined( Q_OS_MACOS ) return OT_MAC_OS; +#elif defined( Q_OS_IOS ) + return OT_I_OS; #elif defined( ANDROID ) return OT_ANDROID; #else