From 8e8b12662c8009571d327ca3f1e0e85a959b9541 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 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/util.h b/src/util.h index 66c70294ee..9c9d3a3861 100644 --- a/src/util.h +++ b/src/util.h @@ -1098,9 +1098,11 @@ class COSUtil { #ifdef _WIN32 return OT_WINDOWS; -#elif defined( __APPLE__ ) || defined( __MACOSX ) +#elif defined( Q_OS_MACOS ) return OT_MAC_OS; -#elif defined( ANDROID ) +#elif defined( Q_OS_IOS ) + return OT_I_OS; +#elif defined( Q_OS_ANDROID ) || defined( ANDROID ) return OT_ANDROID; #else return OT_LINUX;