mirror of
https://github.com/yuzu-mirror/breakpad.git
synced 2026-04-21 06:03:43 +00:00
Let breakpad build with -Wall on OS X and Linux.
A=thakis@chromium.org Original Review: https://codereview.chromium.org/1550933002/ R=thakis@chromium.org Review URL: https://codereview.chromium.org/1554613002 .
This commit is contained in:
parent
1be3027941
commit
257123ca70
9 changed files with 14 additions and 29 deletions
|
|
@ -364,7 +364,7 @@ static uint64_t LookupSymbol(const char* symbol_name,
|
|||
return list.n_value;
|
||||
}
|
||||
|
||||
#if TARGET_OS_IPHONE
|
||||
#if TARGET_OS_IPHONE || MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_6
|
||||
static bool HasTaskDyldInfo() {
|
||||
return true;
|
||||
}
|
||||
|
|
@ -381,13 +381,9 @@ static SInt32 GetOSVersion() {
|
|||
}
|
||||
|
||||
static bool HasTaskDyldInfo() {
|
||||
#if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_6
|
||||
return true;
|
||||
#else
|
||||
return GetOSVersion() >= 0x1060;
|
||||
#endif
|
||||
}
|
||||
#endif // TARGET_OS_IPHONE
|
||||
#endif // TARGET_OS_IPHONE || MAC_OS_X_VERSION_MIN_REQUIRED >= 10_6
|
||||
|
||||
uint64_t DynamicImages::GetDyldAllImageInfosPointer() {
|
||||
if (HasTaskDyldInfo()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue