Fix compile under cygwin/windows
This commit is contained in:
parent
f5293ea29f
commit
c21260dfb3
1 changed files with 4 additions and 0 deletions
|
@ -37,6 +37,9 @@ static const char * DBG_LVL_LIST[] = {"NONE", "FAIL", "ERROR", "WARN", "INFO", "
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(_WIN32) || defined(__CYGWIN__)
|
||||||
|
static inline void show_stackframe(){}
|
||||||
|
#else
|
||||||
#include <execinfo.h>
|
#include <execinfo.h>
|
||||||
static inline void show_stackframe() {
|
static inline void show_stackframe() {
|
||||||
void *trace[16];
|
void *trace[16];
|
||||||
|
@ -52,6 +55,7 @@ static inline void show_stackframe() {
|
||||||
DEBUG_MSG(0, "Backtrace[%d]: %s", i, messages[i]+p);
|
DEBUG_MSG(0, "Backtrace[%d]: %s", i, messages[i]+p);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue