Skip to content

Commit

Permalink
Fix build using mingw
Browse files Browse the repository at this point in the history
Credit to t-hey
  • Loading branch information
nyalldawson committed Dec 4, 2017
1 parent f180ea4 commit 11f610b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/app/main.cpp
Expand Up @@ -477,7 +477,7 @@ int main( int argc, char *argv[] )
signal( SIGXFSZ, qgisCrash );
#endif

#ifdef Q_OS_WIN
#ifdef _MSC_VER
SetUnhandledExceptionFilter( QgsCrashHandler::handle );
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/core/qgsapplication.cpp
Expand Up @@ -847,7 +847,7 @@ QString QgsApplication::userFullName()
//fall back to login name
if ( sUserFullName.isEmpty() )
sUserFullName = userLoginName();
#elif defined(Q_OS_ANDROID)
#elif defined(Q_OS_ANDROID) || defined(__MINGW32__)
sUserFullName = "Not available";
#else
struct passwd *p = getpwuid( getuid() );
Expand Down
2 changes: 2 additions & 0 deletions src/core/qgsfeaturerequest.cpp
Expand Up @@ -387,6 +387,8 @@ bool QgsFeatureRequest::OrderByClause::prepare( QgsExpressionContext *context )
return mExpression.prepare( context );
}

QgsFeatureRequest::OrderBy::OrderBy() = default;

QgsFeatureRequest::OrderBy::OrderBy( const QList<QgsFeatureRequest::OrderByClause> &other )
{
Q_FOREACH ( const QgsFeatureRequest::OrderByClause &clause, other )
Expand Down
2 changes: 1 addition & 1 deletion src/core/qgsfeaturerequest.h
Expand Up @@ -225,7 +225,7 @@ class CORE_EXPORT QgsFeatureRequest
/**
* Create a new empty order by
*/
CORE_EXPORT OrderBy() = default;
CORE_EXPORT OrderBy();

/**
* Create a new order by from a list of clauses
Expand Down

0 comments on commit 11f610b

Please sign in to comment.