From c21260dfb3646128ca7bd807917f1e3934097934 Mon Sep 17 00:00:00 2001 From: Erik Zandvliet Date: Tue, 18 Jul 2017 14:43:51 +0200 Subject: [PATCH] Fix compile under cygwin/windows --- lib/defines.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/defines.h b/lib/defines.h index 7853e0bc..4a23cf9b 100644 --- a/lib/defines.h +++ b/lib/defines.h @@ -37,6 +37,9 @@ static const char * DBG_LVL_LIST[] = {"NONE", "FAIL", "ERROR", "WARN", "INFO", " #endif #endif +#if defined(_WIN32) || defined(__CYGWIN__) +static inline void show_stackframe(){} +#else #include static inline void show_stackframe() { void *trace[16]; @@ -52,6 +55,7 @@ static inline void show_stackframe() { DEBUG_MSG(0, "Backtrace[%d]: %s", i, messages[i]+p); } } +#endif #else