Skip to content

Commit

Permalink
NXArchInfo/NXGetLocalArchInfo is deprecated since watchOS 8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
matux committed Jul 25, 2023
1 parent 253ce67 commit f6ab535
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions RollbarNotifier/Sources/RollbarCrash/Util/RollbarCrashCPU.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,12 @@

const char* rccpu_currentArch(void)
{
#if TARGET_OS_WATCH
return NULL;
#else
const NXArchInfo* archInfo = NXGetLocalArchInfo();
return archInfo == NULL ? NULL : archInfo->name;
#endif
}

#if RollbarCrashCRASH_HAS_THREADS_API
Expand Down

0 comments on commit f6ab535

Please sign in to comment.