Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #85 from mbernasocchi/android
fixing execinfo.h no such file or directory on android
  • Loading branch information
mhugent committed Jan 12, 2012
2 parents 92de863 + 35eded8 commit 47ca431
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/main.cpp
Expand Up @@ -74,7 +74,7 @@ typedef SInt32 SRefCon;
#include "qgsrectangle.h"
#include "qgslogger.h"

#if defined(linux)
#if defined(linux) && ! defined(ANDROID)
#include <execinfo.h>
#endif

Expand Down Expand Up @@ -174,7 +174,7 @@ void myMessageOutput( QtMsgType type, const char *msg )
|| 0 == strncmp( msg, "QPainter::", 10 ) )
{
#if 0
#ifdef linux
#if defined(linux) && ! defined(ANDROID)
fprintf( stderr, "Stacktrace (run through c++filt):\n" );
void *buffer[256];
int nptrs = backtrace( buffer, sizeof( buffer ) / sizeof( *buffer ) );
Expand All @@ -196,7 +196,7 @@ void myMessageOutput( QtMsgType type, const char *msg )
case QtFatalMsg:
{
fprintf( stderr, "Fatal: %s\n", msg );
#ifdef linux
#if defined(linux) && ! defined(ANDROID)
fprintf( stderr, "Stacktrace (run through c++filt):\n" );
void *buffer[256];
int nptrs = backtrace( buffer, sizeof( buffer ) / sizeof( *buffer ) );
Expand Down

0 comments on commit 47ca431

Please sign in to comment.