Skip to content

Commit

Permalink
Merge pull request #3360 from ann0see/iOS/FixGetOs
Browse files Browse the repository at this point in the history
Return correct OS version on iOS
  • Loading branch information
ann0see authored Sep 22, 2024
2 parents 8ecf811 + 8e8b126 commit d6c6fc7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d6c6fc7

Please sign in to comment.