Fix a link issue on mingw/msys2

This commit is contained in:
jean-pierre charras 2023-09-27 10:20:18 +02:00
parent 6f9affe3db
commit e1d7d1bca7
1 changed files with 6 additions and 0 deletions

View File

@ -108,6 +108,12 @@ double ACCELERATING_ZOOM_CONTROLLER::GetScaleForRotation( int aRotation )
return zoomScale;
}
#ifdef __MINGW32__
// For some reason, this is needed to avoid a link issue
// (undefined reference to ACCELERATING_ZOOM_CONTROLLER::DEFAULT_TIMEOUT not found)
constexpr ACCELERATING_ZOOM_CONTROLLER::TIMEOUT ACCELERATING_ZOOM_CONTROLLER::DEFAULT_TIMEOUT;
#endif
CONSTANT_ZOOM_CONTROLLER::CONSTANT_ZOOM_CONTROLLER( double aScale ) : m_scale( aScale )
{