From b029902f6c7d0a0ae371bf9fcc2eff4553401a79 Mon Sep 17 00:00:00 2001 From: Lauri Nurmi Date: Tue, 27 Jul 2021 10:24:00 +0300 Subject: [PATCH] Fix compilation with gcc 4.4 under CentOS 6 Fix 'friend' keyword needs 'class' error introduced by 035c29e6a2 (Make wxRescaleCoord() safer by requiring explicitly using From/To, 2021-07-13) which broke the build with gcc 4.4.7 used under CentOS 6. Closes https://github.com/wxWidgets/wxWidgets/pull/2450 --- include/wx/private/rescale.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/wx/private/rescale.h b/include/wx/private/rescale.h index d5a8b81831..81c80c66b1 100644 --- a/include/wx/private/rescale.h +++ b/include/wx/private/rescale.h @@ -70,7 +70,7 @@ private: const wxSize m_oldScale; // Only it can create objects of this class. - friend wxRescaleCoordWithValue; + friend class wxRescaleCoordWithValue; }; // Specialization for just a single value. @@ -95,7 +95,7 @@ private: const wxSize m_oldScale; // Only it can create objects of this class. - friend wxRescaleCoordWithValue; + friend class wxRescaleCoordWithValue; }; template