Skip to content

Commit d6c6fc7

Browse files
authored
Merge pull request #3360 from ann0see/iOS/FixGetOs
Return correct OS version on iOS
2 parents 8ecf811 + 8e8b126 commit d6c6fc7

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)