From c2db20d7456a81368f41a870f23a5265020a5106 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Sat, 30 Sep 2023 16:08:54 +0200 Subject: [PATCH] Fix a link issue on mingw in debug mode. --- common/view/zoom_controller.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/view/zoom_controller.cpp b/common/view/zoom_controller.cpp index 1bd26df51f..a80f499a0e 100644 --- a/common/view/zoom_controller.cpp +++ b/common/view/zoom_controller.cpp @@ -110,8 +110,10 @@ double ACCELERATING_ZOOM_CONTROLLER::GetScaleForRotation( int aRotation ) #ifdef __MINGW32__ // For some reason, this is needed to avoid a link issue -// (undefined reference to ACCELERATING_ZOOM_CONTROLLER::DEFAULT_TIMEOUT not found) +// (undefined reference to ACCELERATING_ZOOM_CONTROLLER::DEFAULT_TIMEOUT +// and GAL_API CONSTANT_ZOOM_CONTROLLER::MSW_SCALE) constexpr ACCELERATING_ZOOM_CONTROLLER::TIMEOUT ACCELERATING_ZOOM_CONTROLLER::DEFAULT_TIMEOUT; +constexpr double GAL_API CONSTANT_ZOOM_CONTROLLER::MSW_SCALE; #endif