WSL/SLF GitLab Repository

Commit 30803f55 authored by Mathias Bavay's avatar Mathias Bavay
Browse files

Disabling backtraces for CYGWIN (since it does not support them)

parent 04bcddbd
......@@ -71,7 +71,11 @@ IF(UNIX)
SET(DLL_EXT "dylib*")
SET(STAT_EXT "a")
ELSE(APPLE)
SET(PLATFORM "-DLINUX")
IF(CYGWIN)
SET(PLATFORM "-DLINUX -DCYGWIN")
ELSE(CYGWIN)
SET(PLATFORM "-DLINUX")
ENDIF(CYGWIN)
SET(DLL_EXT "so*")
SET(STAT_EXT "a")
ENDIF(APPLE)
......
......@@ -37,7 +37,7 @@ IOException::IOException(const std::string& message, const std::string& position
} else {
msg = position + ": " + message;
}
#if defined(LINUX) && !defined(ANDROID)
#if defined(LINUX) && !defined(ANDROID) && !defined(CYGWIN)
void* tracearray[25]; //maximal size for backtrace: 25 pointers
size_t tracesize = backtrace(tracearray, 25); //obtains backtrace for current thread
char** symbols = backtrace_symbols(tracearray, tracesize); //translate pointers to strings
......
......@@ -23,7 +23,7 @@
#include <iostream>
#include <stdlib.h>
#if defined(LINUX) && !defined(ANDROID)
#if defined(LINUX) && !defined(ANDROID) && !defined(CYGWIN)
#include <execinfo.h> //needed for the backtracing of the stack
#endif
......
Supports Markdown
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