Permalink
Browse files

Fix build on iOS (only iOS 9 and up support thread_local)

  • Loading branch information...
KentuckyCompass committed Dec 31, 2017
1 parent d565e23 commit 2a3c4408d2047e872e3c13f38027a801633da003
Showing with 5 additions and 0 deletions.
  1. +5 −0 ext/native/profiler/profiler.cpp
@@ -15,7 +15,12 @@
#define MAX_CATEGORIES 64 // Can be any number, represents max profiled names.
#define MAX_DEPTH 16 // Can be any number, represents max nesting depth of profiled names.
#if PPSSPP_PLATFORM(IOS) && defined(__IPHONE_OS_VERSION_MIN_REQUIRED) && __IPHONE_OS_VERSION_MIN_REQUIRED < __IPHONE_9_0
// iOS did not support C++ thread_local before iOS 9
#define MAX_THREADS 1 // Can be any number, represents concurrent threads calling the profiler.
#else
#define MAX_THREADS 4 // Can be any number, represents concurrent threads calling the profiler.
#endif
#define HISTORY_SIZE 128 // Must be power of 2
#ifndef _DEBUG

0 comments on commit 2a3c440

Please sign in to comment.