Skip to content

Commit 8e8b126

Browse files
committed
iOS: Fix GetOperatingSystem() to return correct OS
1 parent 4652c90 commit 8e8b126

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/util.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1098,9 +1098,11 @@ class COSUtil
10981098
{
10991099
#ifdef _WIN32
11001100
return OT_WINDOWS;
1101-
#elif defined( __APPLE__ ) || defined( __MACOSX )
1101+
#elif defined( Q_OS_MACOS )
11021102
return OT_MAC_OS;
1103-
#elif defined( ANDROID )
1103+
#elif defined( Q_OS_IOS )
1104+
return OT_I_OS;
1105+
#elif defined( Q_OS_ANDROID ) || defined( ANDROID )
11041106
return OT_ANDROID;
11051107
#else
11061108
return OT_LINUX;

0 commit comments

Comments
 (0)