Commit e6325b1b authored by Mario Hlawitschka's avatar Mario Hlawitschka
Browse files

[CHANGE] backtrace is a BSD library function and, therefore, available on OSX...

[CHANGE] backtrace is a BSD library function and, therefore, available on OSX as well (documentation says it is in 10.5, 10.6, tested on 10.7)
parent f9f2383f
......@@ -22,7 +22,7 @@
//
//---------------------------------------------------------------------------
#if ( defined( __linux__ ) && defined( __GNUC__ ) )
#if (( defined( __linux__ ) && defined( __GNUC__ )) || defined ( __APPLE__ ))
// This is highly platform dependent. Used for backtrace functionality.
#include <execinfo.h>
#include <cxxabi.h>
......@@ -105,7 +105,7 @@ std::string WException::getBacktrace() const
// print trace here
std::ostringstream o;
#if ( defined( __linux__ ) && defined( __GNUC__ ) )
#if (( defined( __linux__ ) && defined( __GNUC__ )) || defined( __APPLE__))
// This is highly platform dependent. It MIGHT also work on BSD and other unix.
// Automatic callstack backtrace
......
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