Skip to content

Commit

Permalink
fix: mobile detection when compiling for macOS
Browse files Browse the repository at this point in the history
fix #758
  • Loading branch information
eduardojunio authored Jan 22, 2025
1 parent 8302dbd commit e3ce723
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/framework/platform/unixplatform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ void Platform::init(std::vector<std::string>& args)

#ifdef __APPLE__
#include "TargetConditionals.h"
#if defined(TARGET_OS_IPHONE) || defined(TARGET_IPHONE_SIMULATOR)
#if (defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE) || (defined(TARGET_OS_SIMULATOR) && TARGET_OS_SIMULATOR)
setDevice({ Mobile, iOS });
#else
setDevice({ Desktop, macOS });
Expand Down

0 comments on commit e3ce723

Please sign in to comment.