mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Fix build on iOS (only iOS 9 and up support thread_local)
This commit is contained in:
parent
d565e23f4c
commit
2a3c4408d2
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue