Commit 40135332 authored by incardon's avatar incardon

Fixing support for CYGWIN

parent 9dc7f980
......@@ -15,7 +15,9 @@
#include <stdexcept>
#include <string>
#include <array>
#ifndef __CYGWIN__
#include <execinfo.h>
#endif
extern std::string program_name;
......@@ -43,7 +45,7 @@ static inline std::string exec(const char* cmd)
*/
static inline void print_stack()
{
#ifdef PRINT_STACKTRACE
#if defined(PRINT_STACKTRACE) && !defined(__CYGWIN__)
void *trace[256];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment