mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Disable stacktrace for android as execinfo.h is not available
This commit is contained in:
parent
5e1ecf3ad1
commit
b4a10749f4
@ -25,7 +25,7 @@
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#ifndef WINDOWS_SYS
|
||||
#if !defined(WINDOWS_SYS) && !defined(__ANDROID__)
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <execinfo.h>
|
||||
@ -110,13 +110,13 @@ static inline void print_stacktrace(FILE *out = stderr, unsigned int max_frames
|
||||
free(symbollist);
|
||||
}
|
||||
|
||||
#else // WINDOWS_SYS
|
||||
#else // !defined(WINDOWS_SYS) && !defined(__ANDROID__)
|
||||
static inline void print_stacktrace(FILE *out = stderr, unsigned int max_frames = 63)
|
||||
{
|
||||
(void) max_frames;
|
||||
|
||||
fprintf(out, "TODO: 2016/01/01 print_stacktrace not implemented yet for WINDOWS_SYS\n");
|
||||
fprintf(out, "TODO: 2016/01/01 print_stacktrace not implemented yet for WINDOWS_SYS and ANDROID\n");
|
||||
}
|
||||
#endif // WINDOWS_SYS
|
||||
#endif // !defined(WINDOWS_SYS) && !defined(__ANDROID__)
|
||||
|
||||
#endif // _STACKTRACE_H_
|
||||
|
Loading…
Reference in New Issue
Block a user