mirror of
https://github.com/yuzu-emu/breakpad
synced 2024-11-26 15:38:32 +00:00
Functions only called by DumpFreeSpace need to be conditionally compiled.
BUG=525938 R=mark@chromium.org Review URL: https://codereview.chromium.org/2008553002 .
This commit is contained in:
parent
adca10c8ff
commit
faeb1f9b2b
1 changed files with 6 additions and 0 deletions
|
@ -62,6 +62,10 @@ using google_breakpad::UContextReader;
|
|||
|
||||
const size_t kLineBufferSize = 2048;
|
||||
|
||||
#if !defined(__LP64__)
|
||||
// The following are only used by DumpFreeSpace, so need to be compiled
|
||||
// in conditionally in the same way.
|
||||
|
||||
template <typename Dst, typename Src>
|
||||
Dst saturated_cast(Src src) {
|
||||
if (src >= std::numeric_limits<Dst>::max())
|
||||
|
@ -122,6 +126,8 @@ size_t NextOrderedMapping(
|
|||
return best;
|
||||
}
|
||||
|
||||
#endif // !__LP64__
|
||||
|
||||
class MicrodumpWriter {
|
||||
public:
|
||||
MicrodumpWriter(const ExceptionHandler::CrashContext* context,
|
||||
|
|
Loading…
Reference in a new issue