Skip to content

Commit

Permalink
fix #7902
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed May 26, 2013
1 parent 8053129 commit 8c768bc
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
14 changes: 7 additions & 7 deletions src/app/main.cpp
Expand Up @@ -79,14 +79,14 @@ typedef SInt32 SRefCon;
#include "qgsrectangle.h"
#include "qgslogger.h"

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

// (if Windows/Mac, use icon from resource)
#if ! defined(Q_WS_WIN) && ! defined(Q_WS_MAC)
#if !defined(Q_WS_WIN) && !defined(Q_WS_MAC)
#include "../../images/themes/default/qgis.xpm" // Linux
#include <QIcon>
#endif
Expand Down Expand Up @@ -195,7 +195,7 @@ LONG WINAPI qgisCrashDump( struct _EXCEPTION_POINTERS *ExceptionInfo )
}
#endif

#ifdef Q_OS_UNIX
#if defined(Q_OS_UNIX) && !defined(ANDROID)
void qgisCrash( int signal )
{
qFatal( "QGIS died on signal %d", signal );
Expand Down Expand Up @@ -232,7 +232,7 @@ void myMessageOutput( QtMsgType type, const char *msg )
|| 0 == strncmp( msg, "QPainter::", 10 ) )
{
#if 0
#if defined(linux) && ! defined(ANDROID)
#if defined(Q_OS_UNIX) && !defined(ANDROID)
fprintf( stderr, "Stacktrace (run through c++filt):\n" );
void *buffer[256];
int nptrs = backtrace( buffer, sizeof( buffer ) / sizeof( *buffer ) );
Expand All @@ -254,7 +254,7 @@ void myMessageOutput( QtMsgType type, const char *msg )
case QtFatalMsg:
{
fprintf( stderr, "Fatal: %s\n", msg );
#if defined(linux) && !defined(ANDROID)
#if defined(Q_OS_UNIX) && !defined(ANDROID)
( void ) write( STDERR_FILENO, "Stacktrace (run through c++filt):\n", 34 );
void *buffer[256];
int nptrs = backtrace( buffer, sizeof( buffer ) / sizeof( *buffer ) );
Expand All @@ -276,7 +276,7 @@ int main( int argc, char *argv[] )
#endif // _MSC_VER
#endif // WIN32

#if !defined(ANDROID) && !defined(_MSC_VER)
#if defined(Q_OS_UNIX) && !defined(ANDROID)
// Set up the custom qWarning/qDebug custom handler
qInstallMsgHandler( myMessageOutput );

Expand Down Expand Up @@ -593,7 +593,7 @@ int main( int argc, char *argv[] )
QgsApplication myApp( argc, argv, myUseGuiFlag, configpath );

// (if Windows/Mac, use icon from resource)
#if ! defined(Q_WS_WIN) && ! defined(Q_WS_MAC)
#if !defined(Q_WS_WIN) && !defined(Q_WS_MAC)
myApp.setWindowIcon( QPixmap( qgis_xpm ) ); // Linux
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/providers/delimitedtext/qgsdelimitedtextfile.cpp
@@ -1,5 +1,5 @@
/***************************************************************************
qgsdelimitedtextfile.cpp - Data provider for delimted text
qgsdelimitedtextfile.cpp - Data provider for delimited text
-------------------
begin : 2012-01-20
copyright : (C) 201 by Chris Crook
Expand Down
2 changes: 1 addition & 1 deletion src/providers/delimitedtext/qgsdelimitedtextprovider.cpp
@@ -1,5 +1,5 @@
/***************************************************************************
qgsdelimitedtextprovider.cpp - Data provider for delimted text
qgsdelimitedtextprovider.cpp - Data provider for delimited text
-------------------
begin : 2004-02-27
copyright : (C) 2004 by Gary E.Sherman
Expand Down
2 changes: 1 addition & 1 deletion src/providers/delimitedtext/qgsdelimitedtextprovider.h
@@ -1,5 +1,5 @@
/***************************************************************************
qgsdelimitedtextprovider.h - Data provider for delimted text
qgsdelimitedtextprovider.h - Data provider for delimited text
-------------------
begin : 2004-02-27
copyright : (C) 2004 by Gary E.Sherman
Expand Down

0 comments on commit 8c768bc

Please sign in to comment.